teqo-backup/src/lib/campaignSessionTtl.ts
Francisco Ignácio Fontoura Solla 3892c2e0a4 Add remembered campaign sessions
Keep campaign JWT and cookie lifetimes aligned while revoking the active server session on logout.
2026-07-27 08:57:26 -03:00

5 lines
271 B
TypeScript

/** Default session: one field workday without persisting login across days. */
export const CAMPAIGN_SESSION_TTL_SHORT = 8 * 60 * 60
/** Explicit "remember me" session: a fortnight on the user's own device. */
export const CAMPAIGN_SESSION_TTL_LONG = 14 * 24 * 60 * 60