// Family-wide session policy. Used by every bchen.dev app's session cookie. // DO NOT diverge per-app — coherence across apps is a feature. export const SESSION_TTL_DAYS = 30; export const SESSION_TTL_SECONDS = SESSION_TTL_DAYS * 24 * 60 * 60; export const SESSION_RENEW_THRESHOLD_SECONDS = 60 * 60; // Phase 1: keep cookie name as 'token' so existing tests stay green. // Phase 2 flips this to 'nanodrop_session'. export const SESSION_COOKIE_NAME = 'token'; export const LOGOUT_PATHS = new Set(['/logout', '/api/v1/auth/logout']);