commit
This commit is contained in:
parent
325afec90e
commit
5c9191598d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
Loading…
Add table
Add a link
Reference in a new issue