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