Saltar al contenido principal
La clase MfaWebAuthnError implementa la funcionalidad de la pantalla mfa-webauthn-error. Esta pantalla se muestra cuando se produce un error durante una operación de WebAuthn.
MfaWebAuthnError

Constructores

Cree una instancia del administrador de la pantalla de error de MFA WebAuthn:
Example
import MfaWebAuthnError from '@auth0/auth0-acul-js/mfa-webauthn-error';

const mfaWebAuthnError = new MfaWebAuthnError();
await mfaWebAuthnError.tryAgain();

Propiedades

Proporciona configuraciones de marca, como el tema y los ajustes de marca.
Proporciona configuraciones relacionadas con el cliente, como id, name y logoUrl, para la pantalla mfa-webauthn-error.
Proporciona información sobre la Organización del usuario, como id y name.
Contiene datos sobre la pantalla actual del flujo de autenticación.
Contiene detalles específicos de la pantalla mfa-webauthn-error, incluida su configuración y contexto.
Contiene datos relacionados con el inquilino, como id y los metadatos asociados.
Proporciona datos específicos de la transacción para la pantalla mfa-webauthn-error, como identificadores activos y estados del flujo.
Contiene datos no confiables que se pasan al SDK, como la entrada del usuario durante la gestión de errores de MFA con WebAuthn.
Detalles del usuario activo, incluidos username, email y roles.

Métodos

changeLanguage
Promise<void>
Este método cambia el idioma que se muestra en la página de Universal Login.
Example
import MfaWebAuthnError from '@auth0/auth0-acul-js/mfa-webauthn-error';

const mfaWebAuthnError = new MfaWebAuthnError();
mfaWebAuthnError.changeLanguage({
  language: 'fr',
});
Parámetros del método
getErrors
Este método recupera el array de errores de la transacción del contexto, o un array vacío si no hay ninguno.
noThanks
Promise<void>
Este método permite al usuario rechazar la operación actual de WebAuthn.
Example
import MfaWebAuthnError from '@auth0/auth0-acul-js/mfa-webauthn-error';

const mfaWebAuthnError = new MfaWebAuthnError();
await mfaWebAuthnError.noThanks();
tryAgain
Promise<void>
Este método permite al usuario reintentar la operación anterior de WebAuthn.
Example
import MfaWebAuthnError from '@auth0/auth0-acul-js/mfa-webauthn-error';

const mfaWebAuthnError = new MfaWebAuthnError();
await mfaWebAuthnError.tryAgain();
tryAnotherMethod
Promise<void>
Este método permite al usuario probar con otro método de MFA.
Example
import MfaWebAuthnError from '@auth0/auth0-acul-js/mfa-webauthn-error';

const mfaWebAuthnError = new MfaWebAuthnError();
await mfaWebAuthnError.tryAnotherMethod();
usePassword
Promise<void>
Este método permite al usuario autenticarse con su contraseña en lugar de usar WebAuthn.
Example
import MfaWebAuthnError from '@auth0/auth0-acul-js/mfa-webauthn-error';

const mfaWebAuthnError = new MfaWebAuthnError();
await mfaWebAuthnError.usePassword();