Put in order · NestJS course · Module 4: Authentication
JWT token lifecycle
Order the JWT token lifecycle from creation to expiration
Items to put in order
- Server creates the token with payload and signs it with a secret key
- Token is sent to the client
- Token is attached to every request in the header
- Client stores the token (e.g., localStorage)
- Token expires after the expiresIn time elapses
You can check the correct answer by solving this task in the CodeWorlds game.