'AWS Cognito - Setting default account name in MFA authenticator apps

I have set up TOTP MFA for my app with AWS Cognito.

The account name in the authenticator app is being set to 'AWSCognito' as you can see in the screenshot below.

I was not able to find a setting to set this to, say, 'XYZ' Is there a way to set default value for this?

Authenticator app



Solution 1:[1]

You can change the account name by changing the issuer name in the string that goes into the QR code. Here's the string I was generating

`otpauth://totp/AWSCognito:${email}?secret=${code}&issuer=https://cognito-idp.ap-southeast-2.amazonaws.com/`

Replace 'AWSCognito' with your app name.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Aalok