Skip to content
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

Username from Auth.getCurrentUser has inconsistent casing on iOS and Android #723

Closed
Jordan-Nelson opened this issue Jul 15, 2021 · 3 comments
Labels
auth Issues related to the Auth Category bug Something is not working; the issue has reproducible steps and has been reproduced fixed-in-release-candidate Issues that have been addressed in the current release-candidate branch iOS Issues specific to the iOS Platform platform-discrepancy Issues that result in inconsistent behavior between support platforms requires-ios-fix This issue is the result of an underlying Amplify iOS issue that needs to be fixed.

Comments

@Jordan-Nelson
Copy link
Member

Describe the bug
When accessing the username via Auth.getCurrentUser(), the casing is not consistent on iOS and Android. On Android, the value returned matches the casing used during sign up. on iOS, username is lowercase.

To Reproduce
Steps to reproduce the behavior:

  1. Create an app using standard username based auth
  2. [Android] Sign up with a user with upper case characters in the username
  3. [Android] Sign in and call Amplify.Auth.getCurrentUser()
  4. [Android] Observe that the username has uppercase characters
  5. [iOS] Sign up with a user with upper case characters in the username
  6. [iOS] Sign in and call Amplify.Auth.getCurrentUser()
  7. [iOS] Observe that the username is all lowercase

Expected behavior
The username returned on iOS and Android should be consistent on iOS and Android, including casing.

@Jordan-Nelson Jordan-Nelson added auth Issues related to the Auth Category platform-discrepancy Issues that result in inconsistent behavior between support platforms labels Jul 15, 2021
@Jordan-Nelson Jordan-Nelson added the bug Something is not working; the issue has reproducible steps and has been reproduced label Mar 8, 2022
@Jordan-Nelson Jordan-Nelson added iOS Issues specific to the iOS Platform requires-ios-fix This issue is the result of an underlying Amplify iOS issue that needs to be fixed. pending-triage This issue is in the backlog of issues to triage labels Mar 14, 2022
@Jordan-Nelson
Copy link
Member Author

Marking this as pending triage because it needs a link to an issue in amplify-ios

@Jordan-Nelson Jordan-Nelson self-assigned this Mar 21, 2022
@Jordan-Nelson Jordan-Nelson removed the pending-triage This issue is in the backlog of issues to triage label Mar 21, 2022
@Jordan-Nelson Jordan-Nelson removed their assignment Apr 19, 2022
@Jordan-Nelson
Copy link
Member Author

For anyone facing this issue, 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.

@Jordan-Nelson Jordan-Nelson added the pending-release Issues that have been addressed in main but have not been released label Aug 2, 2022
@Jordan-Nelson Jordan-Nelson added fixed-in-release-candidate Issues that have been addressed in the current release-candidate branch and removed pending-release Issues that have been addressed in main but have not been released labels Mar 2, 2023
@Jordan-Nelson
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth Issues related to the Auth Category bug Something is not working; the issue has reproducible steps and has been reproduced fixed-in-release-candidate Issues that have been addressed in the current release-candidate branch iOS Issues specific to the iOS Platform platform-discrepancy Issues that result in inconsistent behavior between support platforms requires-ios-fix This issue is the result of an underlying Amplify iOS issue that needs to be fixed.
Projects
None yet
Development

No branches or pull requests

1 participant