amplify-ui: Bug (Authenticator): Missing support for SELECT_MFA_TYPE challenge
Before creating a new issue, please confirm:
- I have searched for duplicate or closed issues and discussions.
- I have tried disabling all browser extensions or using a different browser
- I have tried deleting the node_modules folder and reinstalling my dependencies
- I have read the guide for submitting bug reports.
On which framework/platform are you having an issue?
React
Which UI component?
Authenticator
How is your app built?
Create React App
What browsers are you seeing the problem on?
No response
Please describe your bug.
With Cognito User MFA configuration set to Choose preferred delivery method Authenticator Crashes
Ref: User Setting in Cognito
Ref: Error on Chrome Console
Ref: UI Screen when crash happens
What’s the expected behaviour?
User should be presented with available MFA options and pick his/her choice
Help us reproduce the bug!
- Install amplify
- Create project using React-UI
- Create User without providing phone
- Configure TOTP MFA
- Update user attributes to include phone, and verify it
- Change MFA Configuration to
Choose preferred delivery methodon Cognito Console - Try authenticating user
Code Snippet
// Put your code below this line.
Additional information and screenshots
No response
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 2
- Comments: 16 (10 by maintainers)



@0618 I am talking about a case where user has provided both SMS, and has configured TOTP as can be seen in the screenshot (shared by me).
This can be achieved with following steps (as shared above)
UserPoolis set toRequire MFAAWS Cognito Consolefor thisChoose preferred delivery methodusingAWS Cognito ConsoleWith above done, please try to login using amplify-ui based react app.
To add more details to the context, please see the flow below. You would notice that screen displayed on stage 2 never appears when using AmplifyUI.
Please do let me know, if you would need more information.
Just to update that we now have a plan to add support for choosing MFA delivery method but do not have an estimated delivery date at this time.
Hello @PritamDutt @github-julien-pie , Thanks for reporting this issue.
SELECT_MFA_TYPEis not supported by Amplify UI so far (@aws-amplify/ui@5.6.4, @aws-amplify/ui-react@4.6.4), so please make sure that there’s an MFA preference set in Cognito.There’s no ETA at this moment.
For anyone following this issue, you can also keep an eye on issue #5829 as well since this bug should essentially be resolved once we get that feature implemented.
Just revisited this issue and figured out why I was not able to reproduce it. It was because I didn’t setup the TOTP MFA right after creating the account.
Also, I don’t have to modify MFA methods to
Choose preferred delivery methodto reproduce the issue.So here’re the updated steps:
There’s a detailed note on this https://github.com/aws-amplify/amplify-js/issues/4646#issuecomment-1462908573
Hi @0618,
I can confirm this is still appearing with following versions of related libraries: “@aws-amplify/ui”: “^5.6.1”, “@aws-amplify/ui-react”: “^4.6.1”, “aws-amplify”: “^5.2.0”,
To double check ensure that
ChallengeNameisSELECT_MFA_TYPEin response toAWSCognitoIdentityProviderService.RespondToAuthChallengeon Cognito IDPLet me know if you need more information.
Thanks for the detailed step. I just reproduced the error.
It might be a bug, but needs more investigation.