We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4b87b8 commit f7f2565Copy full SHA for f7f2565
pages/api/set-cookie.js
@@ -10,7 +10,7 @@ export default async function cookieHandler(req, res) {
10
serialize('gfw-token', body.token, {
11
path: '/',
12
httpOnly: true,
13
- maxAge: 0, // no cache
+ maxAge: 2592000, // expires in 30 days
14
})
15
);
16
res.status(200).end('ok');
0 commit comments