JWT with Dancer2 | May 2026 | The Weekly Challenge
Stateless (JWT)
How it works:
User logs in, server creates a JWT containing user data
Server signs the JWT with a secret key
Server sends JWT to client
Client sends JWT with every request
Server verifies the signature and trusts the data inside
Why it scales:
Any server can validate a JWT using the shared secret key
No database lookup needed per request
If you add 100 more servers, they all work immediately
May 29, 2026 at 9:20:41 AM EDT
*
FILLER