The Tool Desk
Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.
A refresh token with no expiry can function like a password that never changes: if an attacker steals it and can replay it, they may keep minting new access tokens and act within the authorization grant. The analogy is useful but incomplete. A refresh token is issued for an OAuth client, consented scope and resource servers, and an authorization server can rotate, constrain, expire or revoke it. The security problem is the unbounded window of exposure, not that the token literally becomes a password.
Access tokens are usually short-lived, but a refresh token is the credential that obtains their replacements. That makes an unexpired refresh token a high-value target. RFC 9700, the IETF’s OAuth 2.0 Security Best Current Practice published in January 2025, describes refresh tokens as attractive targets because they represent the full scope granted to a client and are not automatically constrained to one resource.
As an Amazon Associate I earn from qualifying purchases.
What does a refresh token with no expiry actually mean?
It means the authorization server has not set a fixed end date, maximum lifetime or inactivity cutoff that will make the token unusable. Unless another event causes revocation, the same credential may continue to be exchanged for fresh access tokens.
That does not necessarily mean the token is valid in every context. OAuth still gives the server ways to bind it to the client, the user’s consented scope and the resource servers covered by the grant. The token may also stop working after explicit revocation, a client change, a security event or a server-side policy update. “No expiry” therefore means no automatic time-based end, not guaranteed immortality.
Popular on Amazon
- 【Strong Adsorption】The inspiration of the silicone phone suction case comes from the adhesive force of the octopus. Each suction cup phone mount is 3.15 inches long and 2.17 inches wide, with 24 independent suction cups providing a stronger and more stable suction force, so you don't have to worry about your phone falling during use.
- 【Back of Phone Suction Grip】Remove the adhesive film on the phone suction cup and stick it on the phone case. You can then fix the phone on any smooth surface, which is very convenient. (The phone suction cup cannot be removed and reused after being attached to the phone case. It is recommended to attach it to a regular phone case, not a valuable one.)
- 【Widely Used】Our non-slip silicone phone sticky grip mount attaches to almost any flat phone case and make it compatible with common mobile phones such as iPhone and Android.You can shoot, watch videos or video calls in the kitchen, gym, dance studio, bathroom and other places.
- 【Capture the Wonderful Picture】Whether you are a TikTok creator or just like to share videos and photos, this phone suction cup can help you hands-free capture wonderful videos and photos for sharing with friends.
- 【Note】You can fix the phone suction cup on a smooth surface such as a mirror or glass. If necessary, wipe the suction cup with a damp cloth to obtain stronger suction. Before releasing your hand, make sure the phone is firmly fixed. (Not applicable to rough walls, wooden surfaces, and other uneven surfaces)
The distinction matters because an access token’s short lifetime does not cap the attacker’s access if a stolen refresh token can repeatedly create new access tokens. A ten-minute access-token lifetime can reduce the value of one intercepted access token while leaving the underlying refresh credential exposed for months or years.
Why is an unexpiring refresh token compared with an unrotated password?
The comparison focuses on durability. A password that is never changed remains useful until someone resets it; a refresh token without expiry remains useful until the authorization server revokes it or another validity check fails. Both are bearer-style secrets in the sense that possession, combined with the required authentication context, can be enough to obtain continued access.
Free tools Windows power users keep installed
One-click scans. No signup required.
There are important limits to the analogy:
- A refresh token belongs to an OAuth grant rather than being a user’s universal login secret.
- It should be bound to the client that received it and to the scope and resource servers the user approved.
- The authorization server can rotate it, detect reuse, apply inactivity or maximum-lifetime rules, and revoke the grant.
- Its authority is normally limited to obtaining access tokens, not directly to every authentication or administrative function.
Calling it an “unrotated password” is therefore a warning about lifecycle risk: a durable secret that is not replaced gives an attacker a long time to use it after compromise.
What happens if a refresh token is stolen?
If an attacker can successfully replay the token to the authorization server, the attacker may mint access tokens and call APIs within the grant’s scope. The resulting activity can continue even after the original access token expires. The practical impact depends on the consented scope, the resources covered, client authentication, sender constraints and the server’s detection and revocation policies.
Token theft alone does not prove that an attacker can use the credential. A confidential client may require client authentication, and a sender-constrained token may be usable only by the key or client instance to which it is bound. Conversely, a bearer refresh token copied from a device, browser profile, log file or backup is at greater risk because possession can be enough for replay.
Also popular on Amazon
- SUPERIOR COMFORT — Unlike traditional circular ear buds, the design of EarPods is defined by the geometry of the ear. Which makes them more comfortable for more people than any other ear bud–style headphones.
- HIGH-QUALITY AUDIO — The speakers inside EarPods have been engineered to maximize sound output and minimize sound loss, which means you get high-quality audio.
- BUILT-IN REMOTE — EarPods with USB-C plug also include a built-in remote that lets you adjust the volume, control the playback of music and video, and answer or end calls with a pinch of the cord.
- COMPATIBILITY — Works with all devices that have a USB-C port.
- INTEGRATED MICROPHONE — A built-in microphone precisely captures your voice while you’re on the phone, taking a FaceTime call, or summoning Siri — so you’re always heard loud and clear.
RFC 9700’s warning is about potential, not a guaranteed breach outcome: a stolen token can provide the attacker with the full grant available to that client. No universal breach rate or lifetime statistic is established by the standards.
Should refresh tokens expire?
Yes, an authorization server should impose a lifecycle limit rather than allowing indefinite validity by default. RFC 9700 says refresh tokens should expire when the client has been inactive for some time, meaning the token has not been used to obtain a fresh access token. “Should” is a standards recommendation, not a single mandated number of days.
The appropriate inactivity interval is a policy decision. A low-risk application that users open occasionally may need a different interval from a sensitive grant that reaches financial, health or administrative resources. A server can also define a fixed maximum lifetime, so regular use does not extend a token forever. The policy should be documented and applied consistently across grant types.
Expiry is not a substitute for revocation. A server may revoke refresh tokens after a password change, logout, account disablement, client compromise or another security event; RFC 9700 treats such revocation as something an authorization server may perform when appropriate. Expiration limits the time available for an undiscovered theft, while revocation provides a response when the server learns that a grant should no longer be trusted.
Do refresh tokens need to rotate?
For public clients, RFC 9700 requires the authorization server to use either sender-constrained refresh tokens or refresh-token rotation to detect replay. Rotation means issuing a new refresh token each time the old one is used and invalidating the prior token. The server keeps the relationship between tokens in the same family so that reuse of an invalidated member can signal a possible compromise.
Quick wins for a faster PC:
Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Repair Windows errors before they cause bigger problemsFix Now →Also popular on Amazon
- Secure Hold: Our PopSockets adhesive phone grip gives your cell phone a secure, comfortable hold in hand to help prevent drops while texting, taking photos, or scrolling on the go. Designed to stick firmly to most phone cases and devices.
- Hands-Free Made Easy: Easily turn your PopSocket into a phone stand to prop up your phone anywhere, perfect for watching videos, video calls, or following recipes. A must-have phone holder that keeps your device secure and ready for anything.
- Compatibility: Works with all phones, tablets, and Kindles. Sticks best to smooth, hard plastic cases and may not adhere to silicone or textured cases. Easily swap your PopTop to change up your style.
- Black PopSockets: Simple, refined, and endlessly versatile. A timeless essential for any phone.
- Travel Must-Have for People On the Go: A must-have travel accessory for flights, flying, airports, air travel, airplanes, planes, international trips, cruises, and long travel days. Key gadget for your airport haul, travel accessories and must-haves.
Rotation is a replay-detection measure, not proof that a stolen token cannot be abused. An attacker who uses a copied token before the legitimate client does may receive a valid replacement. RFC 10017 also discusses browser scenarios in which an attacker’s use may avoid detectable reuse. Rotation reduces the value of repeated replay and creates a signal; it does not eliminate the need for secure storage, transport protection, scope limits and revocation.
When a previously invalidated token is presented, the authorization server can treat that as suspicious. RFC 9700 describes revoking the active token and requiring a fresh authorization grant as a possible response. That protects the account but can interrupt the legitimate user’s session, which is the main operational cost of aggressive reuse detection.
How do rotation and sender constraint differ?
Both controls address replay, but they solve different parts of the problem and are not interchangeable in every deployment.
| Control | Replay detection or prevention | Lifecycle behavior | Recovery impact | Best-fit considerations |
|---|---|---|---|---|
| Rotation with token-family tracking | Each use replaces the token; reuse of an invalidated member can reveal replay. | The server tracks lineage and invalidates prior members. | A suspected reuse event can revoke the active token and force a new authorization grant. | Required as one option for public clients; useful when sender binding is unavailable. |
| Sender-constrained refresh token | Use is bound to the authorized client instance or key, making a copied bearer value less useful. | The token can still have a maximum lifetime or inactivity expiry. | A stolen value may fail without the bound sender, but key or client compromise remains a concern. | Required as the other public-client option under RFC 9700; deployment details depend on the client type. |
A confidential client is not automatically exempt from good lifecycle design. Client authentication and server-side controls can reduce replay risk, but the authorization server should still set expiration or inactivity policy, bind tokens correctly and provide revocation.
What must an authorization server protect?
The baseline rules come from RFC 6749, the OAuth 2.0 framework specification. Refresh tokens must be kept confidential in transit and storage, sent only over TLS and bound to the client for which they were issued. RFC 9700 adds that issued refresh tokens should be bound to the user’s consented scope and the relevant resource servers.
Also popular on Amazon
- [360 ° Flexible Rotation Design] Comes with a rotatable lanyard ring that supports 360 ° free rotation, effectively solving the problem of twisted and tangled lanyards
- [Wide compatibility] The ultra-thin 0.02-inch design does not block the charging port at all, and both wired and wireless charging can be used directly without removing the pad. Compatible with most smartphones such as iPhone, compatible with various wristbands, lanyards, crossbody straps, and keychains
- [Durable and Portable Material] Premium rust-resistant stainless steel material with good flexibility, which not only avoids scratching the phone case, but also has excellent anti rust and anti fading performance
- [Multi scenario Practical] Paired with a lanyard or wristband, hands-free use can be achieved. The phone is within reach and not easily dropped, ideal for daily commuting and outdoor activities. Suitable for full coverage phone cases, does not support half coverage phone cases
- [Quality Service] If you find any damage or other issues with the product upon receipt, please contact us immediately. We will handle it quickly
Those requirements imply several concrete controls:
- Transmit refresh-token requests only over TLS and reject insecure transport.
- Store the token where application code, logs, analytics systems and support exports cannot casually read it.
- Do not place refresh tokens in URLs or telemetry fields that may be copied into referrers and logs.
- Associate each token with the client and grant that created it; do not accept a token at an unrelated client.
- Enforce the scope and resource-server audience approved for that grant.
- Record enough metadata to revoke one token, a token family, a client grant or an account when a security event occurs.
These are lifecycle and authorization-server responsibilities. A long expiry cannot be made safe merely by shortening access-token validity.
What are the special rules for browser-based OAuth applications?
Browser-based applications have additional guidance in RFC 10017, the IETF document identified as a 2026 update for this application category. The guidance calls for rotating the refresh token on each use or sender-constraining it, and for setting either a maximum lifetime or an inactivity expiry.
RFC 10017 also says a rotated token should not be extended past an initial, pre-established expiration. In other words, issuing a replacement on every refresh must not silently turn a finite grant into an indefinitely renewable one. Browser deployments should model tab, device and session behavior carefully so that a replay signal can be distinguished from a race or a legitimate concurrent request, while still treating reuse as a potential compromise.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.How do I revoke a refresh token?
Revocation is performed by the authorization server or an administrative control that can invalidate the grant. The exact endpoint and user-interface labels vary by implementation, but the response plan should cover both routine logout and suspected theft.
Also popular on Amazon
- 【PKYAA Double Sided Silicone Suction Phone Case Mount】PKYAA With Double Sided 40 Strong and Reliable individual suction cups, PKYAA provides a thicken and upgraded universal silicon suction mount for your phone.
- 【Friendly to Content Creators】If you are a content creator or an online influencer, you can create videos anywhere with this suction mount completely hands free with this silicone cell phone mount for cases.
- 【HANDS-FREE & Adhere to Mirrors】This Double Sided silicone suction phone case mount allows you to stick your phone to the mirror easily. No longer holding your phone in one hand to watch video tutorials while making up.
- 【Strong Grip on the Smooth Surface】You can easily hang your phone anywhere with a smooth surface. All you do is you clean off your phone and smooth surface. It is STURDY and it not only sticks to mirrors, it also sticks to windows, it sticks to refrigerators, tiles and other clean, flat surfaces.
- 【Press Down Firmly Every 30 Minutes】Use your palm or fingers to press the phone down firmly and check it's secure before letting go. Apply even pressure for a few seconds to allow the suction cup to adhere properly. To maintain the grip and prevent accidental falls, it's a good practice to periodically reapply pressure to the suction cup.
- Identify the grant. Use the client, user, token family and resource information associated with the credential.
- Invalidate the token or family. If rotation is in use and a prior token was reused, revoke the active member and related family as the server’s incident policy requires.
- Revoke broader access when warranted. A confirmed compromise may require disabling the client grant or account sessions, not only deleting one token.
- Require fresh authorization. After security-driven revocation, make the user or administrator create a new grant rather than silently issuing another token from the old one.
- Investigate the exposure path. Review client logs, storage, transport, backups and integrations for copies of the token, while avoiding logging the secret itself.
Because revocation can terminate a legitimate session, communicate the reason and recovery path. A reuse alert is a security signal, not conclusive proof of which device was compromised.
What policy should a team use for a non-expiring token?
Treat an existing non-expiring token as technical debt and replace the policy with explicit limits. A practical review should answer these questions:
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
- Is the client public, confidential or browser-based?
- What scope and resource servers can the grant reach?
- Can the server sender-constrain the token, or must it rotate and track a token family?
- What maximum lifetime and inactivity interval fit the grant’s sensitivity and user workflow?
- Which events trigger revocation: logout, password change, account disablement, client-secret rotation, suspected replay or administrator action?
- What happens to the user after reuse detection, and how is a fresh grant obtained?
Do not choose an interval simply because another service uses it. The RFCs deliberately leave inactivity timing to authorization-server policy. Document the rationale, test the reauthorization path in the product’s normal account flows, and monitor for repeated refresh failures that could indicate expiry, revocation or replay.
What mistakes make a refresh token behave like a permanent password?
- Assuming access-token expiry solves the problem. It does not if the refresh token can mint replacements indefinitely.
- Rotating without detecting reuse. Issuing a new value is useful only when the server invalidates the old one and retains enough family information to recognize reuse.
- Extending the deadline on every rotation. Browser guidance says not to extend a rotated token beyond its initial pre-established expiration.
- Ignoring client category. Public and browser-based clients have explicit rotation or sender-constraint requirements; a confidential-client design still needs a documented lifecycle.
- Failing to bind scope and resources. A refresh token should not be accepted as a general-purpose credential outside the grant it represents.
- Making revocation impossible. If operators cannot invalidate a token family or grant, a stolen secret may remain useful until an arbitrary expiry that might not exist.
- Logging secrets. Debug traces, crash reports and copied request bodies can turn a short-lived incident into a durable credential leak.
What is the bottom line for an OAuth deployment?
A refresh token without expiry is not literally a password, but it has the password’s most dangerous lifecycle property: it can remain valuable until someone actively changes or revokes it. Set an inactivity or maximum-lifetime policy, use sender constraint or rotation as required for the client type, bind the token to the approved scope and resources, and maintain a tested revocation and reauthorization path. Those controls limit both the chance that a stolen token can be replayed and the time it can remain useful.
Sources
- RFC 9700: Best Current Practice for OAuth 2.0 Security (IETF, January 2025).
- RFC 6749: The OAuth 2.0 Authorization Framework (IETF, October 2012).
- RFC 10017: OAuth 2.0 for Browser-Based Applications (IETF, 2026).
Frequently Asked Questions
Can a refresh token be revoked when a user changes a password?
Yes. RFC 9700 identifies password changes and logout as examples of security events after which an authorization server may revoke tokens. Whether revocation is automatic is an implementation policy, so administrators should verify the behavior for each grant type.
Does a short access-token lifetime protect an unexpired refresh token?
Only partially. It limits the duration of one access token, but an attacker who can replay the refresh token may obtain another access token whenever the server accepts the grant.
Is an unlimited refresh token ever appropriate for a machine client?
The standards do not provide a blanket exemption for machine clients. A confidential client may have stronger authentication, but it still benefits from scope and resource binding, inactivity or maximum-lifetime limits, and a way to revoke the grant.
Why can a legitimate user be logged out after refresh-token rotation?
If the server sees a previously invalidated token reused, it may treat that as evidence that the token family was copied. Revoking the active token and requiring a new authorization grant protects the account, but it can interrupt the legitimate session.

