aws-amplify-auth-starters icon indicating copy to clipboard operation
aws-amplify-auth-starters copied to clipboard

React version - EnableSoftwareTokenMFAException - Code mismatch and fail enable Software Token MFA

Open fabripautasso opened this issue 3 years ago • 0 comments

Hello @jpeddicord and @dabit3, we are trying to implement this solution in one of our React applications. We downloaded the react example and tied it to our existing Cognito User Pool. Authentication works fine, but when we try to enable TOTP for a user we are always getting this error

{__type: "EnableSoftwareTokenMFAException",…}
message: "Code mismatch and fail enable Software Token MFA"
__type: "EnableSoftwareTokenMFAException"

The apps we used to generate the TOTP code were Authy and Google Authenticator

Can you verify if there are any issues with the React version of this sample? or it could be a configuration issue in Cognito?

fabripautasso avatar Mar 19 '21 14:03 fabripautasso