LOGBOOK

HELP

Quiz Entry - updated: 2026.10.22

How do access tokens and refresh tokens differ in OAuth?

The access token is presented to the resource server and is short-lived (minutes to hours); the refresh token is presented only to the authorization server, lives longer (days to years), can be revoked, and gets new access tokens without the user logging in again.

Access token Refresh token
Used at Resource server (the API) Authorization server (token endpoint) only
Lifetime Short: minutes or hours Long: days, months, years
Purpose Grants access to the resource Obtains new access tokens
User interaction to renew Not applicable None: the user does not authenticate again
Revocation Usually just expires Can be revoked explicitly
Issued After a successful grant Usually together with the access token (optional)

The split is a security trade-off. The access token is sent to APIs constantly, so it is the token most likely to leak; keeping it short-lived limits the damage. The refresh token travels much less (only to the authorization server, over a back channel), so it can live longer, and because the authorization server checks it on every use, revoking it ends the app's access for good.

Go deeper:

From Quiz: IAM / Authentication Protocols: OAuth 2.0 and OpenID Connect | Updated: Oct 22, 2026