Skip to content

feat: MFA support in passwordless - #152

Merged
rmad17 merged 6 commits into
feat/passwordless-supportfrom
feat/passwordless-mfa
Aug 12, 2026
Merged

feat: MFA support in passwordless #152
rmad17 merged 6 commits into
feat/passwordless-supportfrom
feat/passwordless-mfa

Conversation

@rmad17

@rmad17 rmad17 commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

This PR adds MFA handling on top of feat/passwordless-support for embedded passwordless OTP flows.

Added

  • Handles Auth0 mfa_required responses from passwordless OTP verification.
  • Raises MfaRequiredError with an encrypted MFA token instead of exposing the raw mfa_token.
  • Preserves MFA context such as requested audience/scope for follow-up MFA verification.
  • Adds support for completing first-login MFA into an SDK-managed session via server_client.mfa.verify(..., persist=True).
  • Verifies the final MFA id_token before session creation and reuses the shared session persistence path.
  • Improves passwordless start/verify error handling for rate limits, retry-after, non-JSON responses, issuer/audience errors, and missing ID tokens.
  • Updates passwordless docs/examples for MFA completion.
  • Adds regression coverage for passwordless MFA and expanded passwordless edge cases.

Testing

  • This change adds unit test coverage
  • This change adds integration test coverage
  • This change has been tested on the latest version of the platform/language or why not

Checklist

@rmad17 rmad17 self-assigned this Aug 8, 2026
@rmad17
rmad17 requested a review from a team as a code owner August 8, 2026 04:59

@Piyush-85 Piyush-85 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed it async with @rmad17, LGTM

@rmad17
rmad17 merged commit ef30738 into feat/passwordless-support Aug 12, 2026
7 checks passed
@rmad17
rmad17 deleted the feat/passwordless-mfa branch August 12, 2026 07:16
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.

2 participants