Class MyAccountApiClient

Client for Auth0 MyAccount API operations.

Provides methods for managing the current user's account:

  • Connected accounts (link/unlink external identity providers)
  • MFA factors
  • Authentication methods (passkeys, phone, email, TOTP) - list, get, update, delete
  • Authentication method enrollment (challenge and verify)

Constructors

Methods

  • Delete an authentication method by ID.

    Parameters

    • id: string

      The ID of the authentication method to delete

    Returns Promise<void>

    A promise that resolves when the authentication method has been deleted

  • Get the current user's profile, including profile_policy with per-field edit permissions.

    This feature is currently in Beta. It might change before General Availability, and Auth0 does not support beta functionality for production use. The feature must be enabled for your tenant.

    Parameters

    • Optional options: GetUserProfileOptions

      Optional fields to return, or set includeFields: false to exclude them instead

    Returns Promise<UserProfile>

    A promise that resolves to the user's profile

  • Update the current user's profile. Only the fields you send are changed.

    This feature is currently in Beta. It might change before General Availability, and Auth0 does not support beta functionality for production use. The feature must be enabled for your tenant.

    Parameters

    Returns Promise<UserProfile>

    A promise that resolves to the full updated profile