> ## Documentation Index
> Fetch the complete documentation index at: https://docs-dev-fix-docs-5546-update-db-search.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# MfaWebAuthnPlatformChallenge

> Describes all the properties and methods available to customize the Universal Login `mfa-webauthn-platform-challenge` screen.

The MfaWebAuthnPlatformChallenge class implements the `mfa-webauthn-platform-challenge` screen functionality. This screen is displayed when the user needs to verify their identity using a platform authenticator, such as Touch ID or Face ID.

<Frame>
  <img style={{maxHeight:"400px"}} src="https://mintcdn.com/docs-dev-fix-docs-5546-update-db-search/QuIsP0pVvIDgvY8x/docs/images/cdy7uua7fh8z/1DFJ4Od7ukDasV7uAPH53P/f4018367fbf636f488cf94b6c6c62fda/Screenshot_2025-05-27_at_20.34.24.png?fit=max&auto=format&n=QuIsP0pVvIDgvY8x&q=85&s=bcb4ded06102848630f1759ba4d2cbdc" alt="MfaWebAuthnPlatformChallenge" width="363" height="488" data-path="docs/images/cdy7uua7fh8z/1DFJ4Od7ukDasV7uAPH53P/f4018367fbf636f488cf94b6c6c62fda/Screenshot_2025-05-27_at_20.34.24.png" />
</Frame>

## Constructors

Create an instance of MFA WebAuthn Platform Challenge screen manager:

```typescript Example theme={null}
import MfaWebAuthnPlatformChallenge from '@auth0/auth0-acul-js/mfa-webauthn-platform-challenge';

const mfaWebAuthnPlatformChallenge = new MfaWebAuthnPlatformChallenge();
await mfaWebAuthnPlatformChallenge.verify();
```

## Properties

<ParamField body="branding" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/BrandingMembers">BrandingMembers</a></span>}>
  Provides branding-related configurations, such as branding theme and settings.
</ParamField>

<ParamField body="client" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/ClientMembers">ClientMembers</a></span>}>
  Provides client-related configurations, such as `id`, `name`, and `logoUrl`, for the `mfa-webauthn-platform-challenge` screen.
</ParamField>

<ParamField body="organization" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/OrganizationMembers">OrganizationMembers</a></span>}>
  Provides information about the user's Organization, such as `id` and `name`.
</ParamField>

<ParamField body="prompt" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/PromptMembers">PromptMembers</a></span>}>
  Contains data about the current prompt in the authentication flow.
</ParamField>

<ParamField body="screen" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/ScreenMembersOnMfaWebAuthnPlatformChallenge">ScreenMembersOnMfaWebAuthnPlatformChallenge</a></span>}>
  Contains details specific to the `mfa-webauthn-platform-challenge` screen, including its configuration and context.
</ParamField>

<ParamField body="tenant" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/TenantMembers">TenantMembers</a></span>}>
  Contains data related to the tenant, such as `id` and associated metadata.
</ParamField>

<ParamField body="transaction" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/TransactionMembers">TransactionMembers</a></span>}>
  Provides transaction-specific data for the `mfa-webauthn-platform-challenge` screen, such as active identifiers and flow states.
</ParamField>

<ParamField body="untrustedData" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/UntrustedDataMembers">UntrustedDataMembers</a></span>}>
  Handles untrusted data passed to the SDK, such as user input during MFA WebAuthn platform challenge.
</ParamField>

<ParamField body="user" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/UserMembers">UserMembers</a></span>}>
  Details of the active user, including `username`, `email`, and `roles`.
</ParamField>

## Methods

<ParamField body="changeLanguage" type="Promise<void>">
  This method changes the display language of the Universal Login page.

  ```typescript Example theme={null}
  import MfaWebAuthnPlatformChallenge from '@auth0/auth0-acul-js/mfa-webauthn-platform-challenge';

  const mfaWebAuthnPlatformChallenge = new MfaWebAuthnPlatformChallenge();
  mfaWebAuthnPlatformChallenge.changeLanguage({
    language: 'fr',
  });
  ```

  **Method Parameters**

  <Expandable title="Parameters">
    <ParamField body="options">
      [LanguageChangeOptions](/docs/libraries/acul/js-sdk/Screens/interfaces/LanguageChangeOptions).
    </ParamField>

    <ParamField body="language" type="string" required>
      The locale code for the desired language (for example, `'en'`, `'fr'`, `'es'`).
    </ParamField>

    <ParamField body="persist?" type="&#x22;session&#x22;">
      When set to `'session'`, the selected language persists for the duration of the session.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="getErrors" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/Error">Error</a>[]</span>}>
  This method retrieves the array of transaction errors from the context, or an empty array if none exist.
</ParamField>

<ParamField body="reportBrowserError" type="Promise<void>">
  This method reports a browser-side error encountered during the WebAuthn `navigator.credentials.get()` operation.

  ```typescript Example theme={null}
  import MfaWebAuthnPlatformChallenge from '@auth0/auth0-acul-js/mfa-webauthn-platform-challenge';

  const mfaWebAuthnPlatformChallenge = new MfaWebAuthnPlatformChallenge();
  await mfaWebAuthnPlatformChallenge.reportBrowserError({
    error: { name: 'NotAllowedError', message: 'The operation was not allowed.' },
  });
  ```

  **Method Parameters**

  <Expandable title="Parameters">
    <ParamField body="options">
      [MfaWebAuthnPlatformChallengeReportErrorOptions](/docs/libraries/acul/js-sdk/Screens/interfaces/MfaWebAuthnPlatformChallengeReportErrorOptions).
    </ParamField>

    <ParamField body="error" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/WebAuthnErrorDetails">WebAuthnErrorDetails</a></span>} required>
      The error object from the WebAuthn API (`navigator.credentials.get()`) to be reported.

      <ParamField body="name" type="string" required>
        The name of the error (e.g., `'NotAllowedError'`).
      </ParamField>

      <ParamField body="message" type="string" required>
        The error message describing what went wrong.
      </ParamField>
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="tryAnotherMethod" type="Promise<void>">
  This method allows the user to try another MFA method.

  ```typescript Example theme={null}
  import MfaWebAuthnPlatformChallenge from '@auth0/auth0-acul-js/mfa-webauthn-platform-challenge';

  const mfaWebAuthnPlatformChallenge = new MfaWebAuthnPlatformChallenge();
  await mfaWebAuthnPlatformChallenge.tryAnotherMethod();
  ```
</ParamField>

<ParamField body="verify" type="Promise<void>">
  This method initiates the WebAuthn platform authenticator challenge.

  ```typescript Example theme={null}
  import MfaWebAuthnPlatformChallenge from '@auth0/auth0-acul-js/mfa-webauthn-platform-challenge';

  const mfaWebAuthnPlatformChallenge = new MfaWebAuthnPlatformChallenge();
  await mfaWebAuthnPlatformChallenge.verify();
  ```

  **Method Parameters**

  <Expandable title="Parameters">
    <ParamField body="options">
      [CustomOptions](/docs/libraries/acul/js-sdk/Screens/interfaces/CustomOptions).
    </ParamField>

    <ParamField body="rememberDevice?" type="boolean">
      When `true`, remembers the browser for future MFA challenges. Only applicable if `screen.showRememberDevice` is `true`.
    </ParamField>
  </Expandable>
</ParamField>
