Skip to content
Snippets Groups Projects
Commit 19500f0a authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Change config in passport

parent 0db31b15
No related branches found
No related tags found
1 merge request!116Release v1.0.0
Pipeline #
......@@ -40,7 +40,7 @@ passport.use(new BearerStrategy( (accessToken, done) => {
return done(null, false);
}
if( Math.round((Date.now()-token.created)/1000) > config.get('security:tokenLife') ) {
if( Math.round((Date.now()-token.created)/1000) > config.security.tokenLife) {
AccessToken.remove({ token: accessToken }, (err) => {
if (err) {
return done(err);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment