@auth0/nextjs-auth0 - v4.15.0
    Preparing search index...

    Class MfaGetAuthenticatorsError

    Error thrown when listing MFA authenticators fails.

    try {
    const authenticators = await mfa.getAuthenticators({ mfaToken });
    } catch (error) {
    if (error instanceof MfaGetAuthenticatorsError) {
    console.error(error.code); // 'invalid_token', 'expired_token', etc.
    console.error(error.cause?.error_description);
    }
    }

    Hierarchy

    • MfaError
      • MfaGetAuthenticatorsError
    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    error: string
    error_description: string

    Accessors

    Methods

    • Serialize error for HTTP responses. Called automatically by Response.json() and JSON.stringify(). Ensures both SDK and HTTP API consumers get identical shape.

      Returns { error: string; error_description: string }