From 54fd64b9e38a57423c00a583683032db80378a4e Mon Sep 17 00:00:00 2001 From: Nico Date: Thu, 11 Dec 2025 08:47:41 -0800 Subject: [PATCH] UpdateUpdate expiration --- backend/controllers/auth.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/controllers/auth.controller.js b/backend/controllers/auth.controller.js index bc52c48..40ba145 100644 --- a/backend/controllers/auth.controller.js +++ b/backend/controllers/auth.controller.js @@ -37,7 +37,7 @@ exports.login = async (req, res) => { const token = jwt.sign( { id: user.id, role: user.role }, process.env.JWT_SECRET, - { expiresIn: "1d" } + { expiresIn: "1 year" } ); res.json({ token, username, role: user.role });