Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oak_sessions/src/Session.ts>default

Session middleware for Oak
Latest
class default
import { default } from "https://deno.land/x/oak_sessions@v4.1.12/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)