News for hackers. Stuff that matters.
Re:API with NestJS #3. Authenticating users with bcrypt, Pas... by jakelazaroff on Monday May 25, 2020 @05:00PM (#23304933)
The point is that with stateless authentication, you can’t revoke tokens. If a JWT gets compromise, you need to either wait for it to expire or log all users out by rotating the signing key.

With stateful authentication, solving this is trivial: just check your tokens/sessions/whatever against a centralized database every request.

There are no comments on this comment yet.