Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

storageSession

import { storageSession } from "https://raw.githubusercontent.com/worker-tools/shed/master/index.ts";

Session middleware for worker runtimes.

Need to provide a StorageArea to persist the session between requests. See @worker-tools/kv-storage.

function storageSession<S extends Rec = Rec>(options: StorageSessionOptions<S>): <X extends CookieContext & Partial<FlushedContext>>(ax: Awaitable<X>) => Promise<X & StorageSessionContext<S>>;
§
storageSession<S extends Rec = Rec>(options: StorageSessionOptions<S>): <X extends CookieContext & Partial<FlushedContext>>(ax: Awaitable<X>) => Promise<X & StorageSessionContext<S>>
[src]

§Type Parameters

§
S extends Rec = Rec
[src]

§Parameters

§Return Type

§
<X extends CookieContext & Partial<FlushedContext>>(ax: Awaitable<X>) => Promise<X & StorageSessionContext<S>>
[src]