DEV Community

Discussion on: How to log out when using JWT

Collapse
 
alainvanhout profile image
Alain Van Hout

An alternative approach that I've experimented with (so caveats apply) is to keep a 'jwt version number' for each account (in db and/or memory). That is lightweight enough unless you have an enormous amount of users.

Though of course, the first thing to keep in mind is that JWT was simply not designed to work like/with/for this, so any solution we come up with will be a bit of a (conceptual) hack.

Collapse
 
_arpy profile image
Arpy Vanyan

Totally agree :)