brianschardt / node_rest_api_mysql

MIT License
248 stars 140 forks source link

Logout doesn' work as per passport #11

Open bhavin00 opened 6 years ago

bhavin00 commented 6 years ago

I tried many ways to expire token when logout but didn't work how to resolve

app.get('/logout', function(req, res){ req.logout(); });

RochMoreau commented 5 years ago

Hi ! That's not how JWT Tokens works. I recommend you read the top answer of this https://stackoverflow.com/questions/31919067/how-can-i-revoke-a-jwt-token