Skip to content

Commit

Permalink
Merge pull request #6 from fhswf/cgawron-patch-1
Browse files Browse the repository at this point in the history
fix: extend cookie lifetime
  • Loading branch information
cgawron authored Apr 25, 2024
2 parents 4ee2dcb + 7cdf808 commit 8151d22
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 @@ -113,7 +113,7 @@ app.get('/callback', async (req, res) => {

const token = tokenSet.id_token;

res.cookie('token', token, { maxAge: 120000, httpOnly: true, secure: true, sameSite: 'none' });
res.cookie('token', token, { maxAge: 86400000, httpOnly: true, secure: true, sameSite: 'none' });
const return_url = req.cookies.return_url || "/";
logger.debug('return_url', return_url);
res.redirect(return_url);
Expand Down

0 comments on commit 8151d22

Please sign in to comment.