Silent refresh
When an authenticated request fails with 401, the client trades the refresh token for a new token pair, stores it, and retries the request once, so the user never sees the access token expire. A refresh the server rejects ends the session.
Learn this concept
Lesson 4.6 · Single-flight API refreshUsed in exercises
Exercise 4.7 · API client and auth screensPrerequisite conceptsAPI client
RelatedSingle-flight refresh