Browse Source

token duration to 60m, and readme actualized

master
nau 7 years ago
parent
commit
1ba5d059e1
2 changed files with 3 additions and 1 deletions
  1. +2
    -0
      README.md
  2. +1
    -1
      controllers/userController.js

+ 2
- 0
README.md

@ -2,5 +2,7 @@
micro blogging platform (server api + client side) fullstack
MEAN fullstack
backend: nodejs + express + mongodb
frontend: javascript + angular + bootstrap

+ 1
- 1
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

Loading…
Cancel
Save