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

while do forget password.if user not in cognito.not receive error like user not found. #193

Closed MurtuzaSrashtaSoft closed 2 years ago

MurtuzaSrashtaSoft commented 2 years ago

1st Is there any way? that I can check if my xyz@mail.com user is present in Cognito. 2nd why forgot password method not throw any exception like this user not found.

var data;
try {
  data = await cognitoUser.forgotPassword();
} catch (e) {
  print(e);
}
print('Code sent to $data');
MurtuzaSrashtaSoft commented 2 years ago

not want this type of requirment.