Error thrown when listing MFA authenticators fails.
try { const authenticators = await mfa.getAuthenticators();} catch (error) { if (error instanceof MfaListAuthenticatorsError) { console.log(error.error); // 'access_denied' console.log(error.error_description); // 'Unauthorized' }} Copy
try { const authenticators = await mfa.getAuthenticators();} catch (error) { if (error instanceof MfaListAuthenticatorsError) { console.log(error.error); // 'access_denied' console.log(error.error_description); // 'Unauthorized' }}
Optional
Any other fields from the server's error response (for example auth_session).
auth_session
The error code from the server response.
error
The error_description from the server response.
error_description
Static
Error thrown when listing MFA authenticators fails.
Example