token duration to 60m, and readme actualized

This commit is contained in:
nau
2016-07-16 22:02:55 +02:00
parent 9337b0a75c
commit 1ba5d059e1
2 changed files with 3 additions and 1 deletions

View File

@@ -103,7 +103,7 @@ exports.login = function(req, res) {
// create a token
var token = jwt.sign(user, app.get('superSecret'), {
//expiresInMinutes: 1440 // expires in 24 hours
expiresIn: '10m'
expiresIn: '60m'
});
// return the information including token as JSON