Glossary
Refresh token
Definition
Refresh token: A credential an app sends only to the authorization server to obtain new access tokens when the current one expires (RFC 6749), so the user stays signed in. Refresh tokens last longer than access tokens, so they should be rotated, expire after inactivity and be revoked on sign-out or a password change.
Also known asOAuth refresh tokenrenewal token
In short
A refresh token is a credential an app uses to get new access tokens when the current one expires, so you stay signed in without entering your password again. RFC 6749 says refresh tokens go only to the authorization server, never to the services holding your data. Because they last longer, good systems rotate them, expire them after inactivity and revoke them on sign-out or a password change.
Key takeaways
- A refresh token gets new access tokens; it is never sent to the services that hold your data.
- It lasts much longer than an access token, so stealing one is worth more.
- Rotation replaces the refresh token at every renewal.
- Sessions should end after a period of inactivity, on sign-out and when the password changes.
Last reviewed 4 December 2026 by Foxcolab Team
A refresh token is the credential an app trades for a new access token when the old one expires, so you stay signed in without typing your password again. RFC 6749 defines refresh tokens as the credentials for obtaining new access tokens and says they "are intended for use only with authorization servers" and "are never sent to resource servers," the services that hold your data.
Why there are two tokens#
An access token travels with every request, so it should expire quickly. Asking for your password every time it does would be miserable. The refresh token solves that: it lasts longer, but it's shown to one place only, the sign-in server, which can check that the session is still allowed before issuing anything new.
POST /oauth/token HTTP/1.1
Host: auth.example.com
Content-Type: application/x-www-form-urlencoded
grant_type=refresh_token&refresh_token=tGzv3JOkF0XG5Qx2TlKWIAKeeping a long-lived token safe#
The same longevity makes a stolen refresh token valuable. Current guidance in RFC 9700 adds three protections:
- Rotation. Each renewal returns a new refresh token. With strict rotation, if an attacker and the real app both use the same token, "one of them will present an invalidated refresh token, which will inform the authorization server of the breach."
- Inactivity expiry. "Refresh tokens SHOULD expire if the client has been inactive for some time."
- Revocation on security events, such as a password change or a sign-out at the server.
In Foxcolab#
Signing in gives the app a refresh token alongside a one-day access token, and Foxcolab's servers keep only a one-way fingerprint of the refresh token. Each renewal hands back a new access token and a new refresh token and moves the session's end 180 days out. A device you use stays signed in, and one left unused for 180 days is signed out. A retry after a dropped connection gets the same answer, so a weak network doesn't sign you out.
A session ends, refresh token and all, when you choose Sign out, when you end it on Your devices, and for every other device when you change your password. In an organization, an admin's Set temporary password ends every session of that member. See Manage your active sessions, or create a free account.
Keep exploring
Related terms
- Access tokenAn access token is the short-lived credential an app sends with each request instead of your password. Here's what it holds, how long it should last and what ends it.
- Bearer tokenA bearer token works for anyone who holds it, like cash. Here's how RFC 6750 says to send one, the mistakes that leak them and how servers limit the damage.
- OAuthOAuth is the open standard that lets one app use your account on another service with your permission and without your password. You approve a limited scope, and the app gets a token.
- Session hijackingSession hijacking is taking over someone's signed-in session by stealing or guessing the token that keeps them logged in. It skips the password and two-step verification entirely.
- Session cookieA session cookie is either a cookie that disappears when the browser session ends or the cookie that keeps you signed in. Here's what each attribute does and why stolen ones matter.
- Account takeover (ATO)Account takeover is when someone else gains control of your account and uses it as you. The routes in are reused passwords, phishing, stolen sessions and recovery.

Foxcolab
Private work tools, without the ads.
Mail, files, documents, spreadsheets and meetings in one account. Files, documents and spreadsheets are end-to-end encrypted.