DEV Community


Discussion on: How to log out when using JWT

pajasevi profile image
Pavel Ševčík

Nice article, but I would suggest you use standard HTTP session if you need this functionality.
Because JWT should be stateless.

_arpy profile image
Arpy Vanyan Author

You are right! It's just a lot of people decide to use JWT and then start wondering how to handle logouts :)
I also suggest thinking on what implementation suits the app best and choose JWT only when it's definitely the best matching solution.