Configure Refresh Token Rotation (2024)

Configure refresh token rotation for each application using the Dashboard or the Auth0 SPA SDK. When refresh token rotation is enabled, the transition for the user is seamless. The application uses the previous, unexpired non-rotating refresh token and swaps it for a rotating refresh token.

Migration scenarios accommodate automatic token revocation when migrating from a non-rotating refresh token to a rotating refresh token and vice-versa.

  • Exchanging a non-rotating refresh token when refresh token rotation is enabled deletes all the non-rotating tokens issued for the same client_id, resource server, and user and tenant.

  • Exchanging a rotating refresh token when refresh token rotation is disabled issues a non-rotating refresh token and revokes the rotating refresh token family issued for the same client_id, resource server, and user and tenant.

Configure in the Dashboard

  1. Go to Dashboard > Applications.

  2. Select the application you want to configure.

  3. Go to the Settings tab.

  4. Under Refresh Token Rotation, enable Rotation.

    Configure Refresh Token Rotation (1)
  5. Enter Reuse Interval (in seconds) for the refresh token to account for leeway time between request and response before triggering automatic reuse detection. This interval helps to avoid concurrency issues when exchanging the rotating refresh token multiple times within a given timeframe. During the leeway window the breach detection features don't apply and a new rotating refresh token is issued. Only the previous token can be reused; if the second-to-last one is exchanged, breach detection will be triggered.

  6. Click Save Changes.

Refresh Token Rotation is only supported for OIDC-conformant applications with the Refresh Token grant type enabled.

Configure with the Auth0 SPA SDK

You can use the Auth0 SPA SDK to enable refresh token rotation. You must enable offline access and request the offline access scope in the client SDK.

  1. Install the latest version of the auth0-spa-js SDK:npm install @auth0/auth0-spa-js

  2. Enable the feature on the SDK by setting useRefreshTokens: true to start sending the offline_access scope.

    to configure this snippet with your account

    const auth0 = await createAuth0Client({ domain: '{yourDomain}', client_id: '{yourClientId}', audience: '{yourApiIdentifier}', useRefreshTokens: true });

    Was this helpful?

    /

  3. Configure the Refresh Token rotation settings. For example:

    PATCH /api/v2/clients/{client_id} { "refresh_token": { "rotation_type": "rotating", "expiration_type": "expiring", "token_lifetime": "2592000", "leeway": 3 } }

    Was this helpful?

    /

    AttributeDescription
    rotation_typeText string: "rotating" or "non-rotating"
    expiration_typeText string: "expiring" or "non-expiring"
    token_lifetimeThe default refresh token expiration period, when Refresh Token Rotation is enabled, is 30 days (2,592,000 seconds). You can configure up to 1 year (31,557,600 seconds). The lifetime does not extend when tokens are rotated.
    leewayAllow the same refresh token to be used within the time period to account for potential network concurrency issues that would otherwise invalidate the token should the client attempt to retry using the same refresh token. By default leeway is disabled. Configurable in seconds.

Refresh Token Rotation is only supported for OIDC-conformant applications with the Refresh Token grant type enabled.

Automatic reuse detection

If a previously invalidated token is used, the entire set of refresh tokens issued since that invalidated token was issued will immediately be revoked along with the grant, requiring the user to re-authenticate.

Learn more

Configure Refresh Token Rotation (2024)
Top Articles
Five Life Categories for Successful New Year Goals - Familius.com Shop
10 Best Crypto Coins to Buy Now Before the Bull Run - Don't Regret Not Buying These Gems! (10000x Returns Await) - Brave New Coin
Kevin Cox Picks
122242843 Routing Number BANK OF THE WEST CA - Wise
Jeremy Corbell Twitter
Craigslist Furniture Bedroom Set
Www Craigslist Louisville
Achivr Visb Verizon
Hover Racer Drive Watchdocumentaries
Midlife Crisis F95Zone
10-Day Weather Forecast for Florence, AL - The Weather Channel | weather.com
Les Rainwater Auto Sales
Destiny 2 Salvage Activity (How to Complete, Rewards & Mission)
Committees Of Correspondence | Encyclopedia.com
Salem Oregon Costco Gas Prices
Transfer and Pay with Wells Fargo Online®
Invert Clipping Mask Illustrator
Honda cb750 cbx z1 Kawasaki kz900 h2 kz 900 Harley Davidson BMW Indian - wanted - by dealer - sale - craigslist
3S Bivy Cover 2D Gen
Craigslist Sparta Nj
Ivegore Machete Mutolation
All Obituaries | Gateway-Forest Lawn Funeral Home | Lake City FL funeral home and cremation Lake City FL funeral home and cremation
8005607994
Low Tide In Twilight Ch 52
Essence Healthcare Otc 2023 Catalog
Apparent assassination attempt | Suspect never had Trump in sight, did not get off shot: Officials
Marquette Gas Prices
Telegram Voyeur
Ascensionpress Com Login
Roseann Marie Messina · 15800 Detroit Ave, Suite D, Lakewood, OH 44107-3748 · Lay Midwife
Landing Page Winn Dixie
Nacogdoches, Texas: Step Back in Time in Texas' Oldest Town
Max 80 Orl
A Small Traveling Suitcase Figgerits
De beste uitvaartdiensten die goede rituele diensten aanbieden voor de laatste rituelen
Lichen - 1.17.0 - Gemsbok! Antler Windchimes! Shoji Screens!
Pill 44615 Orange
Spinning Gold Showtimes Near Emagine Birch Run
Sams La Habra Gas Price
Michael Jordan: A timeline of the NBA legend
Does Target Have Slime Lickers
Noh Buddy
M&T Bank
Sea Guini Dress Code
Dancing Bear - House Party! ID ? Brunette in hardcore action
18 Seriously Good Camping Meals (healthy, easy, minimal prep! )
Quest Diagnostics Mt Morris Appointment
Pelican Denville Nj
Deshuesadero El Pulpo
Wwba Baseball
Optimal Perks Rs3
Dinargurus
Latest Posts
Article information

Author: Frankie Dare

Last Updated:

Views: 5793

Rating: 4.2 / 5 (53 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Frankie Dare

Birthday: 2000-01-27

Address: Suite 313 45115 Caridad Freeway, Port Barabaraville, MS 66713

Phone: +3769542039359

Job: Sales Manager

Hobby: Baton twirling, Stand-up comedy, Leather crafting, Rugby, tabletop games, Jigsaw puzzles, Air sports

Introduction: My name is Frankie Dare, I am a funny, beautiful, proud, fair, pleasant, cheerful, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.