import { storageSession } from "https://deno.land/x/workers_middleware@v0.1.0-pre.36/index.ts";
Session middleware for worker runtimes.
Need to provide a StorageArea
to persist the session between requests.
See @worker-tools/kv-storage
.
Parameters
options: StorageSessionOptions<S>
Returns
<X extends CookieContext & Partial<FlushedContext>>(ax: Awaitable<X>) => Promise<X & StorageSessionContext<S>>