Class MfaListAuthenticatorsError

Error thrown when listing MFA authenticators fails.

Example

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 full)

Constructors

Properties

Methods

Constructors

Properties

data?: Record<string, any>

Any other fields from the server's error response (for example auth_session).

error: string

The error code from the server response.

error_description: string

The error_description from the server response.

Methods