@auth0/nextjs-auth0
Version:
Auth0 Next.js SDK
11 lines (10 loc) • 426 B
TypeScript
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>;