Unable to access cognito tokens, but auth session indicates signedIn as true #3969
Labels
pending-maintainer-response
Issue is pending response from an Amplify team member
pending-triage
Issue is pending triage
Describe the bug
Hello,
We are seeing ~2% of our users get logged out when launching our app. This is not something we've been able to reproduce internally, but we can see it occurring in our analytics.
It appears to happen on app launch, as we retrieve auth tokens to make our initial network requests. However, we only make these network requests if Amplify has been configured and has told us that the user's authSession is signed in. At this point, I would expect to be able to retrieve auth tokens without issue.
Steps To Reproduce
Expected behavior
I would expect to be able to retrieve auth tokens without issue after verifying that the user's Auth Session is signed in.
Amplify Framework Version
2.12.0
Amplify Categories
Auth
Dependency manager
Swift PM
Swift version
5.0
CLI version
NA
Xcode version
16.2
Relevant log output
Unfortunately, can't reproduce locally
Is this a regression?
No
Regression additional context
No response
Platforms
iOS
OS Version
iOS 16+
Device
All
Specific to simulators
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: