We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c327a3 commit d1c278eCopy full SHA for d1c278e
src/api/auth.js
@@ -22,6 +22,7 @@ exports.setup = (mstream) => {
22
const token = jwt.sign({ username: req.body.username }, config.program.secret);
23
24
res.cookie('x-access-token', token, {
25
+ maxAge: 157784630000, // 5 years in ms
26
sameSite: 'Strict',
27
});
28
0 commit comments