Interface SessionCookieOptions

interface SessionCookieOptions {
    name?: string;
    sameSite?: "lax" | "strict" | "none";
    secure?: boolean;
}

Properties

name?: string

The name of the session cookie.

Default: __session.

sameSite?: "lax" | "strict" | "none"

The sameSite attribute of the session cookie.

Default: lax.

secure?: boolean

The secure attribute of the session cookie.

Default: depends on the protocol of the application's base URL. If the protocol is https, then true, otherwise false.