node-express-realworld-example-app icon indicating copy to clipboard operation
node-express-realworld-example-app copied to clipboard

[Security Issue] Invalidating tokens on logout

Open areebbeigh opened this issue 7 years ago • 1 comments

The server doesn't have any way of invalidating a user's JWT once he/she has logged out. I was able to get the JWT from the request header, logout and still access protected APIs from postman using the old JWT.

areebbeigh avatar Dec 28 '18 10:12 areebbeigh

Since it is possible to steal a logged in user's JWT as well, an implementation of a combination of solutions discussed here should work fine?

areebbeigh avatar Dec 28 '18 10:12 areebbeigh