- a JWT contains user profile information, e.g. user’s name, email, etc, represented in claims.
- a credential used by an application to access a protected resource, e.g. API
- sent from client to server, server use information in the token to decide whether the client is authorised or not
- token has expired time
- must also be kept secret, but due to its shorter life, security considerations are less critical
- used to obtain a renewed access token by talking to auth server
- long-lived normally, can be blacklisted by auth server
- must be issued to a single authenticated client to prevent the use of leaked tokens by other parties
- must be stored securely by an application because they essentially allow a user to remain authenticated forever
Sliding-sessions are sessions that expire after a period of inactivity