Skip to content

Commit

Permalink
chore: set the session to 12h
Browse files Browse the repository at this point in the history
  • Loading branch information
colorfield committed Oct 8, 2024
1 parent afb9910 commit 1fafd84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/preview/server/utils/oAuth2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ declare module 'express-session' {
}

// In seconds
export const SESSION_MAX_AGE = 300;
export const SESSION_MAX_AGE = 60 * 60 * 12;

const ENCRYPTION_KEY =
process.env.ENCRYPTION_KEY || crypto.randomBytes(32).toString('hex');
Expand Down

0 comments on commit 1fafd84

Please sign in to comment.