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 7a4cd0b commit 523f60dCopy full SHA for 523f60d
routes/users.js
@@ -68,7 +68,7 @@ router.get("/api/v1/user", async (ctx) => {
68
if (db.find((q) => q.login === user.login)) {
69
ctx.cookies.set("token", encrypt(JSON.stringify(user)), {
70
httpOnly: false,
71
- expires: 24 * 60 * 60 * 1000 + Date.now(),
+ expires: () => 24 * 60 * 60 * 1000 + Date.now(),
72
});
73
ctx.body = {
74
...user,
0 commit comments