token duration to 60m, and readme actualized
nau idoctnef@openmailbox.org
Sat, 16 Jul 2016 22:02:55 +0200
2 files changed,
3 insertions(+),
1 deletions(-)
M
controllers/userController.js
→
controllers/userController.js
@@ -103,7 +103,7 @@ // if user is found and password is right
// 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