Skip to content

Commit d1c278e

Browse files
committed
increase cookie experation time
1 parent 0c327a3 commit d1c278e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/api/auth.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ exports.setup = (mstream) => {
2222
const token = jwt.sign({ username: req.body.username }, config.program.secret);
2323

2424
res.cookie('x-access-token', token, {
25+
maxAge: 157784630000, // 5 years in ms
2526
sameSite: 'Strict',
2627
});
2728

0 commit comments

Comments
 (0)