Amplify.Auth.getCurrentUser() returns AuthUser with incorrect username when using email based auth #3311
Open
2 of 14 tasks
Labels
auth
Issues related to the Auth Category
Documentation
Improvements or fixes to public documentation (docs.amplify.aws, pub.dev, readmes).
feature-request
A request for a new feature or an enhancement to an existing API or category.
Description
When adding Cognito auth to a project, if email based sign-in is chosen then
Amplify.Auth.getCurrentUser()
returns anAuthUser
that contains the user ID in both userId and username attributes. Expectation would be that username would contain the email address.Categories
Steps to Reproduce
Amplify.Auth.getCurrentUser()
.Screenshots
No response
Platforms
Flutter Version
3.10.5
Amplify Flutter Version
1.2.0
Deployment Method
Amplify CLI
Schema
No response
The text was updated successfully, but these errors were encountered: