1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 18:29:17 +02:00

remove default expiry in jwt token

This commit is contained in:
Vishal Banthia 2015-12-03 02:08:26 +09:00
parent 9cb231391a
commit 8a342daef9
5 changed files with 25 additions and 14 deletions

View file

@ -39,6 +39,9 @@ module.exports = function(options) {
, name: req.user.email.split('@', 1).join('')
}
, secret: options.secret
, header: {
exp: Date.now() + 24 * 3600
}
})
}))
}