feat: Add My Account API support for managing authentication methods#1552
Open
subhankarmaiti wants to merge 27 commits into
Open
feat: Add My Account API support for managing authentication methods#1552subhankarmaiti wants to merge 27 commits into
subhankarmaiti wants to merge 27 commits into
Conversation
…into feat/passkeys-support
…into feat/passkeys-support
…into feat/passkeys-support
…ve and web platforms
… and integrate into Home screen
…y exchange logic in NativeBridge
pmathew92
reviewed
May 28, 2026
pmathew92
reviewed
May 28, 2026
…t-native-auth0 into feat/passkeys-support
…t-native-auth0 into feat/my-account-api
…elated interfaces
…n method types and preferred phone methods
pmathew92
reviewed
May 29, 2026
pmathew92
reviewed
May 29, 2026
pmathew92
reviewed
May 29, 2026
| /** | ||
| * Represents a generic authentication method returned by the My Account API. | ||
| */ | ||
| export interface AuthenticationMethod { |
Contributor
There was a problem hiding this comment.
Would a single authentication method suffice or do you think we can have granular authentication methods for each factors inheriting from a common interface. Let me know your thoughts?
Contributor
Author
There was a problem hiding this comment.
Granular would be better, But none of our native SDK is doing that today. So making it similar to the Native SDKs
Contributor
There was a problem hiding this comment.
Contributor
Author
There was a problem hiding this comment.
But for swift we do not have this, we can handle it later I feel, as improvement.
ref: https://github.com/auth0/Auth0.swift/blob/master/Auth0/MyAccount/AuthenticationMethods/GetAuthenticationMethodsResponse.swift
pmathew92
reviewed
May 29, 2026
pmathew92
reviewed
May 29, 2026
pmathew92
previously approved these changes
May 29, 2026
…djust null handling in authentication method updates
pmathew92
approved these changes
May 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
myAccountproperty) for managing user authentication methodsMyAccountErrorclass exposingtype,title,detail, andstatusCodeproperties matching native SDK error surfacesaccessTokenpattern for thread safety (no cached client)New Public API
myAccount.passkeyEnrollmentChallenge({ accessToken, ... })myAccount.enrollPasskey({ accessToken, ... })myAccount.enrollPhone({ accessToken, phoneNumber, preferredAuthenticationMethod? })myAccount.enrollEmail({ accessToken, emailAddress })myAccount.enrollTOTP({ accessToken })myAccount.enrollPushNotification({ accessToken })myAccount.enrollRecoveryCode({ accessToken })myAccount.confirmPhoneEnrollment({ accessToken, id, authSession, otpCode })myAccount.confirmEmailEnrollment({ accessToken, id, authSession, otpCode })myAccount.confirmTOTPEnrollment({ accessToken, id, authSession, otpCode })myAccount.confirmPushNotificationEnrollment({ accessToken, id, authSession })myAccount.confirmRecoveryCodeEnrollment({ accessToken, id, authSession })myAccount.getAuthenticationMethods({ accessToken, type? })myAccount.getAuthenticationMethodById({ accessToken, id })myAccount.updateAuthenticationMethodById({ accessToken, id, name?, preferredAuthenticationMethod? })myAccount.deleteAuthenticationMethodById({ accessToken, id })myAccount.getFactors({ accessToken })Error Handling
PasskeyErrorMyAccountErrorTest plan
npx tsc --noEmit)