GenerateSessionCookieConfig: {
    duration?: number;
    secret: string;
} & Partial<CookieConfig>

Configuration parameters used by generateSessionCookie.

Type declaration

  • Optional duration?: number

    Integer value, in seconds, used as the duration of the session cookie. Defaults to 604800 seconds (7 days).

  • secret: string

    The secret used to derive an encryption key for the session cookie.

    IMPORTANT: you must use the same value as in the SDK configuration. See ConfigParameters.secret.