From ca9642ec27db71b6e0b8442a526cc15122163e39 Mon Sep 17 00:00:00 2001 From: Lukian Date: Thu, 26 Jun 2025 17:02:29 +0200 Subject: [PATCH] fix: fixed jwt expiracy --- back/api/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/api/auth.js b/back/api/auth.js index ce4370b..4883a07 100644 --- a/back/api/auth.js +++ b/back/api/auth.js @@ -40,7 +40,7 @@ router.post('/login', speedLimiter, limiter, async (req, res) => { if (user[0]) { if (user[0].password === sha256(password)) { const token = jwt.sign({ id: user[0].id }, process.env.JWT_SECRET, { - expiresIn: 1000 * 60 * 60 * 24 * 7, + expiresIn: 60 * 60 * 24 * 7, }); return res.send({ token: token }); }