MFA Enable/Disable using setUserMfaPreference doesn't sync with AWS cognito #10011
Closed
3 tasks done
Labels
amazon-cognito-identity-js
Used for issues related to this specific package within the monorepo
Auth
Related to Auth components/category
bug
Something isn't working
good first issue
Good for newcomers
Service Team
Issues asked to the Service Team
Projects
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
Not applicable
Amplify Categories
No response
Environment information
Describe the bug
We have a cognito user pool which has MFA as optional. When we enable the MFA through React web application for a user through the SDK(using setUserMfaPreference method), the status in AWS console is not reflecting the same. The console UI doesn't have any effect. It always shows as disabled. Also when we disable MFA for the same user from AWS cognito, UI the frontend application still persist the previous status(enabled) and prompt the user for MFA code .
Expected behavior
Whenever the user Enable/Disable the MFA Status using this SDK, AWS Cognito userpool should reflect the changes in MFA Status section.
Reproduction steps
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
Chrome
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: