import { cookieSession } from "https://deno.land/x/workers_middleware@v0.1.0-pre.36/index.ts";
Cookie session middleware for worker runtimes.
Requires a cookie store, preferably encrypted or signed.
Important: This will serialize the entire session data and store it in a cookie. It is sent with every request!
Only applicable for small session objects. Use storageSession
for a traditional, KV store-backed session.
Parameters
optional
options: CookieSessionOptions<S> = [UNSUPPORTED]Returns
<X extends CookieContext>(ax: Awaitable<X>) => Promise<X & CookieSessionContext<S>>