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
Static
Optional override for formatting stack traces
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Create .stack property on a target object
Error thrown when listing MFA authenticators fails.
Example