From 5c9191598da85aac31b05d1659513a232d61ecdc Mon Sep 17 00:00:00 2001 From: Lukian LEIZOUR Date: Thu, 6 Jun 2024 13:58:26 +0200 Subject: [PATCH] commit --- api/v1/auth/login.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v1/auth/login.js b/api/v1/auth/login.js index f49d926..1888324 100644 --- a/api/v1/auth/login.js +++ b/api/v1/auth/login.js @@ -25,7 +25,7 @@ router.post('/', async (req, res) => { const expiration = new Date().getTime() + 1000 * 60 * 60 * 24 * 7; - res.status(200).send({message: "connection successful", token: jwt.sign({user: {id: user[0].id, username: user[0].username, name: user[0].name, lastname: user[0].lastname}, expiration: 2000}, process.env.JWTSecret)}); + res.status(200).send({message: "connection successful", token: jwt.sign({user: {id: user[0].id, username: user[0].username, name: user[0].name, lastname: user[0].lastname}, expiration: expiration}, process.env.JWTSecret)}); }); module.exports = router; \ No newline at end of file