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