UNPKG

@auth0/nextjs-auth0

Version:
11 lines (10 loc) 426 B
import { SessionData } from "../types/index.js"; export type GenerateSessionCookieConfig = { /** * The secret used to derive an encryption key for the session cookie. * * **IMPORTANT**: you must use the same value as in the SDK configuration. */ secret: string; }; export declare const generateSessionCookie: (session: Partial<SessionData>, config: GenerateSessionCookieConfig) => Promise<string>;