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

    Class MfaChallengeError

    Error thrown when initiating an MFA challenge fails.

    try {
    const challenge = await mfa.challenge({
    mfaToken: mfaToken,
    challengeType: 'otp',
    authenticatorId: 'otp|dev_123'
    });
    } catch (error) {
    if (error instanceof MfaChallengeError) {
    console.log(error.error); // 'too_many_attempts'
    console.log(error.error_description); // 'Rate limit exceeded'
    }
    }

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • error: string
      • error_description: string

      Returns MfaChallengeError

    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