class SessionMiddleware
implements MiddlewareTarget
import { SessionMiddleware } from "https://dotland.deno.dev/x/alosaur@v1.1.1/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(sessionId: string, signString: string): booleanprivate
setSessionIdCookie(session: Session, context: HttpContext): Promise<void>