Closed AnnaPS closed 2 years ago
Hello @AnnaPS - I think this is a duplicate of https://github.com/aws-amplify/amplify-flutter/issues/201.
The "username" field from getCurrentUser unfortunately returns different results for iOS and Android. That issue has some workarounds. You can call fetchUserAttributes, which will also contain the email.
This has been addressed in our latest dev-preview version of auth (available on pub) but it will likely be a bit before it makes it to stable.
Let me know if you believe this issue is not a duplicate of #201. Otherwise I will close this out as a duplicate. Thanks.
@Jordan-Nelson thanks for the quick response. Yes, is duplicated, so I'm going to close it.
Description
I'm trying to get the current user information using the following code
And the debug returns wrong information, basically, set the username (email) field with the id data.
It happens with different apps so I assume is a bug.
Thanks in advance.
Categories
Steps to Reproduce
1- Register a user 2- Login 3- Get current user information
Screenshots
Platforms
Android Device/Emulator API Level
No response
Environment
Dependencies
Device
iPhone 13 Pro
OS
iOS 15.4
Deployment Method
Amplify CLI
CLI Version
7.7.0-flutter-preview.2
Additional Context
No response
Amplify Config