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

x/fresh_session/src/stores/cookie_store.ts>getCookieSession

Dead simple cookie-based session for Deno Fresh.
Latest
function getCookieSession
import { getCookieSession } from "https://deno.land/x/fresh_session@beta-0.3.1/src/stores/cookie_store.ts";

Type Parameters

T extends string
F extends string

Parameters

req: Request
cookieName: string

Returns

Promise<{ session: Session<T, F>; sessionCookieSetter: { (res: Response, cookieOptions: RequiredCookieOptions): Response | Promise<Response>; }; }>