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

Issue when UserConfirmationNecessary is true #259

Closed AliTKanaan closed 5 months ago

AliTKanaan commented 7 months ago

The user pool on my AWS account is set to require user confirmation, However it looks for me like each time I try to log in a user this exception called "CognitoUserConfirmationNecessaryException" is thrown even though the user verified and been used normally through other systems to login.

Based on this code in the library if (dataConfirm['UserConfirmationNecessary'] == true) { throw CognitoUserConfirmationNecessaryException( signInUserSession: _signInUserSession); } Placed at line 196 in cognito_user.dart file, it looks like it will through the exception all the times when the user pool required data confirmation.

Am I missing something here?

Thanks.

github-actions[bot] commented 6 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 5 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.