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

error: string
error_description: string

Methods