Skip to main content
Module

x/xserver/mod.ts>Session

X Server with session and spa plugins
Go to Latest
class Session
extends Plugin
Re-export
import { Session } from "https://deno.land/x/xserver@0.2.1/mod.ts";

Constructors

new
Session(options?: Options)

Properties

expiration: number
httpOnly: boolean
iterations: number
key: number
optional
maxAge: number
name: string
parse: boolean
realm: string
salt: number
sameSite: string
scheme: string
secure: boolean
vector: number

Methods

create(context: Context, data: string | Record<string, unknown>)
decrypt(encrypted: string, secret?: string)
destroy(context: Context)
encrypt(data: string, secret?: string)
handle(context: Context)
secret(secret: string)
setup(context: Context)
sign(
encrypted: string,
stamped: string,
signature?: string,
)
signature(signature: string)
stamp(time: number)
unsign(
encrypted: string,
stamped: string,
signed: string,
signature?: string,
)
unstamp(time: string)
validate(validate: Validate)