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

using cognitoUser.initAuth(userdetails) send otp in session #80

Closed AshwaniSharma123 closed 3 years ago

AshwaniSharma123 commented 4 years ago

using cognitoUser.initAuth(userdetails) send otp in session on mobile number while verifying OTP it throws an exception flutter: CognitoClientException{statusCode: 400, code: NotAuthorizedException, name: NotAuthorizedException, message: User cannot be confirmed. Current status is CONFIRMED}

furaiev commented 4 years ago

It seems like you try to confirm the already confirmed user. Pls add more details what do you send.