-
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
Cognito Auth isAuthenticated always returning false #813
Comments
Hi @bluetrickpt , We'll need to investigate and report back. Thanks for the report. |
It's not clear where the issue might be. I'm seeing a potential bug in the caching layer, but it does not explain why Are you migrating between 2.11.+ and 2.12.+ on the emulator? |
When I first tested, I was migrating from 2.11.+ to 2.12.+ on the emulator. However, in a fresh virtual device (just created for this purpose), 2.12.+ also returns Were you not able to reproduce the bug? Thank you for looking into this. |
We were not able to reproduce the issue. We did release a patch for one of the issues in the caching layer and also made the a suspected issue more apparent by throwing the exception. Please see SDK version 2.12.7 or 2.13.0 |
Hi @bluetrickpt , The previous statement is retracted. We were able to get a reproduction. We will have a fix soon. |
Hello @bluetrickpt We have fixed this issue with SDK release Best, |
I confirm that the issue is fixed in 2.13.1. |
Describe the bug
Function isAuthenticated() from cognitoauth returns always false even after successful login.
To Reproduce
Download and configure the cognitoauth sample for android https://github.com/awslabs/aws-sdk-android-samples.
Add the following line to the onSuccess of the AuthHandler:
Authenticate and see the logs. false is returned even after a successful login.
Which AWS service(s) are affected?
cognitoauth
Expected behavior
isAuthenticated() should return true after a successful login.
Environment Information (please complete the following information):
Additional context
This only occurs in the latest version of cognito auth sdk (2.12.+). In version 2.11.+ isAuthenticated() works as expected.
Similar issue to #508 but that one was probably fixed long ago.
The text was updated successfully, but these errors were encountered: