session management with tokens

2024-02-13 SECURITY

This Post is not about OAuth.
The inspected use case is the session management for an API after the authentification (after login).
It is not about the authentification process, code flow, and so on.

In a simple case, the API sets a session cookie after login:

Pros:

cons

a token-based approach

Access token

login

refresh token

refresh the tokens

refresh token rotation

stay logged in

Logout

security

❰ back