Skip to content

feat: MFA support in passwordless - #152

Open
rmad17 wants to merge 5 commits into
feat/passwordless-supportfrom
feat/passwordless-mfa
Open

feat: MFA support in passwordless #152
rmad17 wants to merge 5 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
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.

1 participant