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

    Interface MfaWebAuthnEnrollmentSuccessMembers

    MfaWebAuthnEnrollmentSuccessMembers

    interface MfaWebAuthnEnrollmentSuccessMembers {
        branding: BrandingMembers;
        client: ClientMembers;
        countryCodes?: CountryCodesMembers;
        experiment?: ExperimentMembers | null;
        organization: OrganizationMembers;
        prompt: PromptMembers;
        tenant: TenantMembers;
        transaction: TransactionMembers;
        user: UserMembers;
        untrustedData: UntrustedDataMembers;
        getErrors(): Error[];
        changeLanguage(options: LanguageChangeOptions): Promise<void>;
        screen: ScreenMembersOnMfaWebAuthnEnrollmentSuccess;
        continue(payload?: WebAuthnEnrollSuccessContinueOptions): Promise<void>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    branding: BrandingMembers
    countryCodes?: CountryCodesMembers

    Optional on the interface so existing implementors of BaseMembers (e.g. test mocks) keep compiling. Always populated at runtime by the BaseContext constructor.

    experiment?: ExperimentMembers | null

    The active Experiment Center experiment for the current screen, or null when none is active (or the screen has not opted in via context_configuration).

    Optional on the interface so existing implementors of BaseMembers (e.g. test mocks) keep compiling. Always populated at runtime by the BaseContext constructor.

    organization: OrganizationMembers
    transaction: TransactionMembers
    untrustedData: UntrustedDataMembers

    Access to the specific properties and data of the 'mfa-webauthn-enrollment-success' screen. Includes the nickname of the enrolled authenticator and its webAuthnType.

    Methods

    • Returns Error[]

    • Allows the user to continue the authentication flow after successful WebAuthn enrollment. This method sends a POST request to the /u/mfa-webauthn-enrollment-success endpoint with action: "default".

      Parameters

      Returns Promise<void>

      A promise that resolves when the continue action is successfully submitted. On success, the browser will typically be redirected to the next step in the flow.

      Throws an error if the form submission fails (e.g., network issue, invalid state).

      // Assuming 'sdk' is an instance of MfaWebAuthnEnrollmentSuccess
      try {
      await sdk.continue();
      // User is redirected to the next step.
      } catch (error) {
      console.error("Failed to continue after WebAuthn enrollment:", error);
      // Handle error, potentially by inspecting sdk.transaction.errors if the page re-renders with an error.
      }