class SessionMiddleware
implements MiddlewareTarget
import { SessionMiddleware } from "https://dotland.deno.dev/x/alosaur@v0.35.0/src/security/session/mod.ts";
Middleware for use sessions with signature hash DEFAULTS: DEFAULT_SESSION_COOKIE_KEY: sid DEFAULT_MAX_AGE: day
Methods
private
assignToContext(context: SecurityContext, session: Session)private
getSessionIdCookie(context: SecurityContext): string | undefinedprivate
isSessionExpired(session: Session)private
isValidSessionId(sidHash: string, sign: string): booleanprivate
setSessionIdCookie(sessionIdHash: string, context: HttpContext): Promise<void>