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
187 stars 114 forks source link

requestMFACode #62

Closed GJDK closed 4 years ago

GJDK commented 4 years ago

Hi @furaiev, we enabled MFA while sign-in and we use sendMFACode method to achieve it. Can we have an another method to request for MFA code when we intend to do some (secured) transactions/actions?

Thanks in advance.

furaiev commented 4 years ago

Hi, @GJDK , There is no separate method for requesting a code (only sendMFACode and resendConfirmationCode). You can try to logout the user before a secured operation or use another SMS service for getting the code.

GJDK commented 4 years ago

Thansk @furaiev . Closing this issue.