@auth0/auth0-acul-js - v0.1.0-beta.5

    Class MfaWebAuthnPlatformChallenge

    MfaWebAuthnPlatformChallenge

    Hierarchy

    • BaseContext
      • MfaWebAuthnPlatformChallenge

    Implements

    Index

    Constructors

    Properties

    screenIdentifier: string = ScreenIds.MFA_WEBAUTHN_PLATFORM_CHALLENGE

    static

    Methods

    • Initiates the WebAuthn platform authenticator challenge. Internally, this method retrieves the challenge options from this.screen.publicKey, calls navigator.credentials.get() (via the getPasskeyCredentials utility), and then submits the resulting credential assertion to the Auth0 server.

      Parameters

      • Optionaloptions: Classes.VerifyPlatformAuthenticatorOptions

        Optional parameters for the verification. This can include rememberDevice if this.screen.showRememberDevice is true, and any other custom key-value pairs to be sent in the form submission.

      Returns Promise<void>

      A promise that resolves when the credential submission is initiated. A successful operation typically results in a server-side redirect.

      Throws an error if this.screen.publicKey is not available (indicating missing challenge options), if getPasskeyCredentials (and thus navigator.credentials.get()) fails (e.g., user cancellation, no authenticator found, hardware error), or if the final form submission to Auth0 fails. It's crucial to catch errors from this method. WebAuthn API errors (like NotAllowedError) should ideally be reported using this.reportBrowserError().

    MMNEPVFCICPMFPCPTTAAATR