Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/xserver/src/mod.ts>Session

X-Server a Deno server module with middleware
Go to Latest
class Session
extends Plugin<boolean>
Re-export
import { Session } from "https://deno.land/x/xserver@5.0.0/src/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)
domain(domain: string)
encrypt(data: string, secret?: string)
forbidden(forbidden: Forbidden)
handle(context: Context, use: boolean): Promise<Response | void>
secret(secret: string)
setup(context: Context)
sign(
encrypted: string,
stamped: string,
signature?: string,
)
signature(signature: string)
stamp(time: number)
unauthorized(unauthorized: Unauthorized)
unsign(
encrypted: string,
stamped: string,
signed: string,
signature?: string,
)
unstamp(time: string)
validate(validate: Validate)