Skip to content

Commit

Permalink
Fix cookie expiration
Browse files Browse the repository at this point in the history
  • Loading branch information
adic2023 committed Sep 27, 2023
1 parent 22783b7 commit f702503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const initExpress = (): void => {
cookie: {
httpOnly: true,
secure: process.env.NODE_ENV === 'production',
maxAge: 14 * 24 * 3600, // 14 days
maxAge: 14 * 24 * 3600 * 1000, // 14 days
// MongoStore also expires sessions after two weeks of inactivity
},
name: 'sauce',
Expand Down

0 comments on commit f702503

Please sign in to comment.