@auth0/auth0-react
    Preparing search index...

    Class MfaListAuthenticatorsError

    Error thrown when listing MFA authenticators fails.

    try {
    const authenticators = await mfa.getAuthenticators();
    } catch (error) {
    if (error instanceof MfaListAuthenticatorsError) {
    console.log(error.error); // 'access_denied'
    console.log(error.error_description); // 'Unauthorized'
    }
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    error: string
    error_description: string
    message: string
    name: string
    stack?: string
    prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

    Optional override for formatting stack traces

    stackTraceLimit: number

    Methods

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • OptionalconstructorOpt: Function

      Returns void

    • Parameters

      • __namedParameters: { error: string; error_description: string }

      Returns MfaError