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

@@ -82,6 +82,9 @@ module.exports = function(options) {
, name: user.cn
}
, secret: options.secret
, header: {
exp: Date.now() + 24 * 3600
}
})
res.status(200)
.json({