A Refresh Token Policy defines how long-lived refresh tokens are issued, bound, rotated, expired and revoked in an OAuth or OpenID Connect deployment. A stolen refresh token lets an attacker keep obtaining new access tokens. Defenders set absolute and inactivity lifetimes, rotate tokens with reuse detection, bind them to clients, and revoke them on logout, password change or compromise.
Refresh Token Policy in OAuth and OpenID Connect
A refresh token policy is not just a session setting, it is a control surface for how long an OAuth relationship remains usable after the initial login. The policy decides whether a stolen token can be replayed for minutes or for months, and whether a compromise is self-limiting or persists until explicit revocation.
At a practical level, the policy defines the trust boundary between a short-lived access token and the longer-lived credential that can obtain more of them. That makes the design choices around rotation, reuse detection, absolute lifetime and inactivity lifetime central to the security posture of the whole integration. For a broader explanation of token lifetimes and when they should be used, Token Lifetime Policy Design Guide is a useful companion reference.
Why Refresh Token Policy Matters
Refresh tokens matter because they extend access beyond the original sign-in event. If the token is bearer-style and not sender-constrained, whoever holds it can often continue minting new access tokens until the grant is revoked or expires. That is why policy decisions about rotation and binding are security decisions, not just usability preferences.
A weak policy also creates operational ambiguity. Long-lived refresh tokens can hide inactive but still valid integrations, make offboarding incomplete, and leave organisations unable to answer a basic question: which apps still have durable access and for how long? For review work in SaaS environments, the SaaS-to-SaaS and OAuth App Governance Guide helps connect policy design to app inventory and consent governance.
How Rotation, Expiry and Revocation Work Together
Rotation reduces the value of a stolen refresh token by replacing it after use. Reuse detection turns token replay into a signal, because the old token should not continue working once the new one is issued. Absolute expiry sets a hard outer limit, while inactivity expiry limits how long an unused token family can survive in the background.
Revocation closes the loop when the relationship must end before natural expiry. That includes logout, password change, account disablement, consent withdrawal and compromise response. The most effective policies treat refresh token revocation as part of the lifecycle of the grant, not as an exceptional cleanup step. The OAuth standards context is defined in RFC 6749: The OAuth 2.0 Authorization Framework, while modern hardening guidance is captured in RFC 9700: Best Current Practice for OAuth 2.0 Security.
Binding and Client Context Reduce Replay Risk
A refresh token policy is stronger when the token is bound to the right client and, where possible, to proof-of-possession signals rather than being a portable bearer secret. Binding does not eliminate theft, but it can make exfiltrated tokens much harder to reuse from an attacker-controlled environment.
Policy also needs to reflect the client type. Native apps, browser-based apps, service integrations and confidential clients do not all have the same safe storage options or the same replay exposure. The right policy is one that fits the client, the risk and the recovery model rather than assuming every OAuth deployment should behave the same way. Sender-constrained token mechanisms are described in RFC 9449: OAuth 2.0 Demonstrating Proof of Possession (DPoP) and RFC 8705: OAuth 2.0 Mutual-TLS Client Authentication and Certificate-Bound Access Tokens.
Risk and Threat Considerations
Refresh token policy is a direct control against persistent account and integration compromise. The main risk is not the initial theft alone, but the ability of an attacker to keep reissuing access tokens long after the original access token would have expired, often without creating obvious interactive login signals.
Failure mechanism: A stolen or leaked refresh token remains valid for too long, is not rotated correctly, or is not revoked quickly enough after suspicious activity, so the attacker can continue obtaining fresh access tokens.
Impact: The attacker can maintain durable access to mailboxes, SaaS apps, APIs or delegated workflows, extending dwell time, increasing exfiltration opportunity and making containment harder after the first compromise.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
NIST SP 800-63 provides the primary governance reference for this term.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-63 | N/A — Digital Identity Guidelines | Guides session and authenticator assurance decisions that affect token lifetime and reauthentication |
| Recommendation — Set reauthentication and session rules so long-lived token grants match the required assurance level. | ||
Practitioner Guidance
Why practitioners should care: A refresh token policy should be written as an operational control, not a vague security preference. Set explicit lifetime rules, define when rotation is mandatory, and make revocation events part of account, app and incident response procedures.
What to watch for: Long-lived grants, inactive integrations that still refresh successfully, and token reuse events are all signs that the policy is either too permissive or not being enforced consistently. Where reuse detection exists, treat it as a containment signal, not merely a log event.
Practitioner takeaway: The best refresh token policy is the one that shortens the attacker’s usable window without breaking legitimate clients, and that balance is usually proven in staging before it is trusted in production.
Related resources from NHI Mgmt Group
- Guide: How to review Salesforce connected apps and integration users
- What are the signs that a refresh-token problem is actually a policy or concurrency issue?
- What is the difference between access token abuse and refresh token abuse?
- When does refresh token rotation become a priority control?
- How should security teams reduce refresh token risk in SaaS environments?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org