Module

x/oak_sessions/src/Session.ts>default

Session middleware for Oak
Latest
class default
import { default } from "https://dotland.deno.dev/x/oak_sessions@v9.0.0/src/Session.ts";

Constructors

new
private
default(
sid: string,
ctx: Context,
)

Properties

private
ctx: Context
private
data: SessionData
sid: string

Methods

private
persistSessionData(store: Store | CookieStore): Promise<void> | void
private
reupSession(store: Store | CookieStore, expiration: number | null | undefined)
deleteSession(): Promise<void>
flash(key: string, value: unknown)
get(key: string)
has(key: string)
set(key: string, value: unknown)

Static Methods

private
createSession(
ctx: Context,
store: Store | CookieStore,
expiration: number | null | undefined,
defaultData?: SessionData,
): Promise<Session>
private
sessionValid(sessionData: SessionData)
initMiddleware(store?: Store | CookieStore, unnamed 1?: SessionOptions)