-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isSignUpComplete returns True in android even if the user has not been confirmed. In iOS it doesn't. #581
Comments
I could reproduce this difference between iOS and Android, will investigate. |
Dug into iOS Although E.g.
|
Thanks that should be helpful. But I feel this issue shouldnt be closed until we unify .isSignupComplete. But thanks a lot for the alternative way of checking for if the account is confirmed or not. I will test it in my code today. |
May be have this in documentation? |
We are tracking this as a bug. For anyone facing this issue, the current workaround is to ignore |
Hello - We have recently released a new developer preview version of the Auth category (amplify_flutter v1.0.0-next.0). This new version is a full re-write of the auth category in dart, and it supports Mobile, Desktop, and Web. This issue is addressed in this new version. You can read more about the developer preview release in the blog post and docs. I will update this issue again once this new version is out of developer preview. Let me know if you have any questions! |
This issue has been addressed in v1.0.0 of Amplify Flutter, which is now stable. This release also includes web and desktop support for Auth, API, Analytics, and Storage. You can see the list of new features and bug fixes in the release notes, and see more details on how to migrate in the upgrade guide. |
Describe the bug
While using Amplify.Auth.signUp it requires that the user is verified with the code sent to the email before the user can be CONFIRMED in the userpool.
To check if a user is confirmed one way is to check if the signup is complete. Amplify provides .isSignUpComplete. But this is behaving different in different environments.
Android:
Even before the user is confirmed it returns true.
iOS:
User needs to be confirmed or else it will return false.
This needs to be fixed or else there needs to be way for a developer to at least check if the user has been confirmed or not.
To Reproduce
Steps to reproduce the behavior:
final createAccountResult = await Amplify.Auth.signUp(
username: email.text,
password: password.text,
options: CognitoSignUpOptions(userAttributes: {'email': email.text}));
print(createAccountResult.isSignUpComplete);
Expected behavior
print(createAccountResult.isSignUpComplete); should return false for both android and iOS. Because we have not yet confirmed the user.
Screenshots
If applicable, add screenshots to help explain your problem.
Platform
Amplify Flutter current supports iOS and Android. This issue is reproducible in (check all that apply):
[X] Android
[X] iOS
Output of
flutter doctor -v
The text was updated successfully, but these errors were encountered: