Discussion about this post

User's avatar
Anthony's avatar

Nice breakdown. Funny how auth feels “basic” on paper but ends up shaping half your system in real life 😅

Solid refresher, thanks!

Expand full comment
Neural Foundry's avatar

Excellent breakdown of when stateless JWT architectrure makes sense versus session-based approaches. The access/refresh token pattern you describe solves a real problem: most systems need the horizontal scalability of stateless tokens but can't tolerate the security risk of long-lived access tokens. What's less obvous is the token revocation challenge with JWTs. Once issued, they're valid until expiry even if you need to immediately revoke access. Some teams maintian revocation lists, which reintroduces statefulness, while others accept the risk window between revocation events and token expiry.

Expand full comment
2 more comments...

No posts

Ready for more?