-
Notifications
You must be signed in to change notification settings - Fork 549
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
getUsername() returning null #1495
Comments
Hi @zgao67, thanks for the report. Are you saying that you don't get any value back for |
The expected return is the encrypted userName (this is the result we get when the corresponding code is run on IOS) Actual: |
@zgao67 Got it - If I understand correctly, you're saying that on iOS, I notice some similar discussion here: #622 Sounds potentially like a bug. |
The problem is I'm not using federated login. We are using the AWS Cognito service to sign up/ sign in. The discussion seems to indicate that AWS does not support username retrieval for federated log-in but should work fine otherwise |
Closing due to inactivity. Please comment or reopen this issue if you are still facing the issue with the latest version of the SDK. |
I also encountered a similar problem. The sdkusername of iOS returns the real userid set in the cognito background, but the Android usually returns the account number in the account password entered by the user. It is not clear why the results of the SDK performance of the two platforms are inconsistent. |
State your question
When this is called, it either returns
null
, or the direct email ID without any encryption when upload to DynamoDB on Android.Which AWS Services are you utilizing?
Amplify / DynamoDB/ Cognito
Provide code snippets (if applicable)
We were following this document specifically: https://aws-amplify.github.io/docs/sdk/android/authentication
Error Stub:
If this stub does not show, then typically the username (email) is shown directly without any encryption
Environment(please complete the following information):
Device Information (please complete the following information):
The text was updated successfully, but these errors were encountered: