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

x/fresh_session/mod.ts>Session

Dead simple cookie-based session for Deno Fresh.
Latest
type alias Session
import { type Session } from "https://deno.land/x/fresh_session@beta-0.3.1/mod.ts";

Type Parameters

T extends string
F extends string
definition: { get: { (key: T): SessionData<T>[T]; }; set: { (key: T, value: AllowType): void; }; delete: { (key: T): void; }; list: { (): SessionData<T>; }; destroy: { (): void; }; rotateKey: { (): void; }; has: { (key: T): boolean; }; clear: { (): void; }; flash: { (key: F): FlashData<F>[F]; (key: F, value: AllowType): void; }; flashNow: { (key: F): AllowType; }; getRawData: { (): SessionDuplicationData<T, F>; }; }