CookieOptions: {
domain?: string;
enabled: boolean;
expires: number;
path?: string;
sameSite?: "lax" | "strict" | "none";
secure: boolean;
}
Type declaration
Optional domain?: string
enabled: boolean
expires: number
Optional path?: string
Optional sameSite?: "lax" | "strict" | "none"
secure: boolean
Description
Control how cookies behave
Field
expiresNumber of days for cookie to expire in. Use 0 to expire in same browser session.Field
secureWhether the cookie is set securely.