From 1ba5d059e1ad8865699283824e59e7d1465bd0e3 Mon Sep 17 00:00:00 2001 From: nau Date: Sat, 16 Jul 2016 22:02:55 +0200 Subject: [PATCH] token duration to 60m, and readme actualized --- README.md | 2 ++ controllers/userController.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 13db749..f65127d 100644 --- a/README.md +++ b/README.md @@ -2,5 +2,7 @@ micro blogging platform (server api + client side) fullstack MEAN fullstack + backend: nodejs + express + mongodb + frontend: javascript + angular + bootstrap diff --git a/controllers/userController.js b/controllers/userController.js index 474c6f2..c4e8ef1 100644 --- a/controllers/userController.js +++ b/controllers/userController.js @@ -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