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

CookieSessionOptions

import type { CookieSessionOptions } from "https://raw.githubusercontent.com/worker-tools/middleware/master/index.ts";
interface CookieSessionOptions <S extends Rec = Rec> {
cookieName?: string;
defaultSession?: S;
expirationTtl?: number;
}

§Type Parameters

§
S extends Rec = Rec
[src]

§Properties

§
cookieName?: string
[src]

The name of the session cookie. Defaults to sid.

§
defaultSession?: S
[src]

Provide a record that serves as the default session object. Also used for type inference.

§
expirationTtl?: number
[src]

Session expiration time in seconds. Defaults to five minutes.