News for hackers. Stuff that matters.
Re:Use cookies and sessions (not JWTs) for authentication by zulvkr on Monday January 16, 2023 @01:29AM (#34397518)
Storing state in JWT is easy way to share state, such as user permission, between different server.

But state in JWT can be outdated due to permission changes and you it's not possible to just expire it as it's stored in client.

To solve the problem, more complex auth setup is needed such as using short lived JWT, refresh token, which feels more like a bandaid to make JWT sufficiently secure

There are no comments on this comment yet.