Skip to content

feat: add Step-Up Authentication section and related examples to documentation#1023

Merged
gyaneshgouraw-okta merged 3 commits intomainfrom
step-up-refresh-popup
Feb 17, 2026
Merged

feat: add Step-Up Authentication section and related examples to documentation#1023
gyaneshgouraw-okta merged 3 commits intomainfrom
step-up-refresh-popup

Conversation

@gyaneshgouraw-okta
Copy link
Contributor

Summary

Add step-up authentication support via popup for the refresh token flow. When getAccessTokenSilently encounters an mfa_required error, the SDK can now automatically open a Universal Login popup for the user to complete MFA, then return the token transparently — no custom MFA UI required.

Changes

  • Export PopupOpenError and the InteractiveErrorHandler type from the public API, enabling consumers to handle popup errors and type the new configuration option
  • Add documentation and usage examples for step-up authentication via the interactiveErrorHandler: "popup" provider option, including setup, usage, and error handling

Example

<Auth0Provider
  domain="YOUR_AUTH0_DOMAIN"
  clientId="YOUR_AUTH0_CLIENT_ID"
  authorizationParams={{
    redirect_uri: window.location.origin,
    audience: 'https://api.example.com/',
  }}
  useRefreshTokens={true}
  interactiveErrorHandler="popup"
>
  <MyApp />
</Auth0Provider>

Once configured, getAccessTokenSilently handles MFA challenges automatically:

const token = await getAccessTokenSilently({
  authorizationParams: { audience: 'https://api.example.com/', scope: 'read:sensitive' },
});

Testing

  • Verified InteractiveErrorHandler property behaviour via a step up flow

@gyaneshgouraw-okta gyaneshgouraw-okta marked this pull request as ready for review February 17, 2026 05:28
@gyaneshgouraw-okta gyaneshgouraw-okta requested a review from a team as a code owner February 17, 2026 05:28
@gyaneshgouraw-okta gyaneshgouraw-okta merged commit af3e4d6 into main Feb 17, 2026
10 checks passed
@gyaneshgouraw-okta gyaneshgouraw-okta deleted the step-up-refresh-popup branch February 17, 2026 06:11
gyaneshgouraw-okta added a commit that referenced this pull request Feb 17, 2026
**Added**
- feat: add Step-Up Authentication section and related examples to
documentation [\#1023](#1023)
([gyaneshgouraw-okta](https://github.com/gyaneshgouraw-okta))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments