We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43b0626 commit 4884215Copy full SHA for 4884215
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: 31536000, // expires in 1 year
+ maxAge: 0, // no cache
14
})
15
);
16
res.status(200).end('ok');
0 commit comments