mirror of
https://github.com/arnaucube/thoughts.git
synced 2026-02-06 19:26:47 +01:00
token duration to 60m, and readme actualized
This commit is contained in:
@@ -2,5 +2,7 @@
|
||||
micro blogging platform (server api + client side) fullstack
|
||||
|
||||
MEAN fullstack
|
||||
|
||||
backend: nodejs + express + mongodb
|
||||
|
||||
frontend: javascript + angular + bootstrap
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user