// Name: Session Config // // Description: Configuration data related to sessions // // Credit: // // Requires: // // ============================================================================ export interface SessionConfig { /** * Length of ths session before expiring. Represented in seconds */ duration: number; key: string; } export const sessionConfig: SessionConfig = { duration: parseInt(process.env.SESSION_DURATION ?? '604800', 10), key: process.env.SESSION_PRIVATE_KEY || 'not-so-private-key', };