Skip to content

Commit 523f60d

Browse files
author
lucifer
committed
fix: function??
1 parent 7a4cd0b commit 523f60d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routes/users.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ router.get("/api/v1/user", async (ctx) => {
6868
if (db.find((q) => q.login === user.login)) {
6969
ctx.cookies.set("token", encrypt(JSON.stringify(user)), {
7070
httpOnly: false,
71-
expires: 24 * 60 * 60 * 1000 + Date.now(),
71+
expires: () => 24 * 60 * 60 * 1000 + Date.now(),
7272
});
7373
ctx.body = {
7474
...user,

0 commit comments

Comments
 (0)