Skip to content

Commit

Permalink
Decrease session time
Browse files Browse the repository at this point in the history
  • Loading branch information
attrib committed Jan 9, 2024
1 parent 4f0e8c9 commit d5cceb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const sessionParser = session({
saveUninitialized: true,
resave: false,
cookie: {
maxAge: 86_400_000 * 7, // 7 days
maxAge: 86400000 * 2, // 2 day
secure: config.config.basic.url.startsWith("https://"),
},
});

0 comments on commit d5cceb5

Please sign in to comment.