@auth0/auth0-angular
    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
    • Parameters

      • error: string
      • error_description: string

      Returns MfaChallengeError

    error: string
    error_description: string
    message: string
    name: string
    originalStack?: string

    Original stack trace with no modifications

    stack?: string
    zoneAwareStack?: string

    Stack trace where extra frames have been removed and zone names added.

    • Parameters

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

      Returns MfaError