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 });