Skip to content

Commit

Permalink
Increase session length to 30 days
Browse files Browse the repository at this point in the history
  • Loading branch information
js0mmer committed Nov 28, 2023
1 parent efd77eb commit 1eed16c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ if (process.env.MONGO_URL) {
secret: process.env.SESSION_SECRET,
resave: false,
saveUninitialized: false,
cookie: { maxAge: 1000 * 60 * 60 * 24 },
cookie: { maxAge: 30 * 86400 * 1000 },
store: store,
}));
app.use(passport.initialize());
Expand Down

0 comments on commit 1eed16c

Please sign in to comment.