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' }}
Static
Error thrown when listing MFA authenticators fails.
Example