furaiev / amazon-cognito-identity-dart-2

Unofficial Amazon Cognito Identity Provider Dart SDK, to easily add user sign-up and sign-in to your mobile and web apps with AWS.
MIT License
182 stars 113 forks source link

Better handling of unverified phone numbers using sms mfa #225

Closed moonshinephoenix closed 1 year ago

moonshinephoenix commented 1 year ago

PR for https://github.com/furaiev/amazon-cognito-identity-dart-2/issues/223

Tested these changes with our app and it worked fine.

Currently there is only one way to get into a problematic state by having a verified phone number, then enabling MFA and later changing phone_number attribute and not verifying it but in my opinion this should be solved by the developer unsing this library. I added the information to the documentation though to be careful at this step.

furaiev commented 1 year ago

Thank you @moonshinephoenix, your contribution is available as of version 3.2.0.