A refresh token lets a client obtain a new access token after the current one expires, without asking the user to authenticate again. section 25.2
A typical refresh-token flow works like this:
- The client uses a short-lived access token to call an API. section 25.2
- When the access token expires, the client sends the refresh token to the identity provider. section 25.2
- The identity provider returns a new access token, avoiding another user login. section 25.2
A five-minute access token
If an access token expires after five minutes, repeatedly asking the user to log in would create a poor experience. A refresh token allows the client to obtain another access token instead. section 25.2
Protect refresh tokens carefully: anyone who obtains one effectively has the power to impersonate the user by obtaining valid access tokens. section 25.2


