import { session } from "https://deno.land/x/xserver@5.3.2/src/mod.ts";
Methods
decrypt(encrypted: string, secret?: string): Promise<string>
encrypt(data: string, secret?: string): Promise<string>
expiration(expiration: number): Session
The number of milliseconds the session/cookie is valid default is 1 day or 24 hours.
sign(): Promise<string>
encrypted: string,
stamped: string,
signature?: string,
stamp(time: number): string
unauthorized(unauthorized: Unauthorized): Session
unsign(): Promise<boolean>
encrypted: string,
stamped: string,
signed: string,
signature?: string,
unstamp(time: string): boolean