@auth0/auth0-acul-react - v1.0.0
    Preparing search index...

    Interface MfaWebAuthnNotAvailableErrorMembers

    MfaWebAuthnNotAvailableErrorMembers

    interface MfaWebAuthnNotAvailableErrorMembers {
        branding: BrandingMembers;
        client: ClientMembers;
        organization: OrganizationMembers;
        prompt: PromptMembers;
        screen: ScreenMembers;
        tenant: TenantMembers;
        transaction: TransactionMembers;
        user: UserMembers;
        untrustedData: UntrustedDataMembers;
        getErrors(): Error[];
        changeLanguage(options: LanguageChangeOptions): Promise<void>;
        tryAnotherMethod(payload?: CustomOptions): Promise<void>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    branding: BrandingMembers
    organization: OrganizationMembers
    transaction: TransactionMembers
    untrustedData: UntrustedDataMembers

    Methods

    • Returns Error[]

    • Allows the user to select a different MFA method because WebAuthn is not available. This action navigates the user to an authenticator selection screen where they can choose from other available/enrolled MFA factors.

      Parameters

      • Optionalpayload: CustomOptions

        Optional custom parameters to be sent with the request.

      Returns Promise<void>

      A promise that resolves upon successful submission of the 'pick-authenticator' action.

      Throws an error if the form submission fails (e.g., network issues, server-side validation errors).

      // Assuming 'sdk' is an instance of MfaWebAuthnNotAvailableError
      try {
      await sdk.tryAnotherMethod();
      // On success, Auth0 handles redirection to the authenticator selection screen.
      } catch (error) {
      console.error('Failed to switch to another MFA method:', error);
      // Potentially update UI to inform the user of the failure.
      }