Closed tien closed 1 year ago
we faced the very same issue mainly on iOS. Don't know if that can be helpful for debugging this issue
Are there any updates on this issue?
Hi 👋 @alesmit, I'm looking into it now
@alesmit I am having trouble recreating this issue, do you have any further details outside of what is listed in the original post?
I made a sample app with v3 and then logged in, checked auth, upgraded to v4 and installed the required dependencies that come with the breaking changes in v4, and my session was still active/valid
Let me know if there is some other way you are approaching this issue so I can try to recreate
@alesmit Are you still having problems with this?
Hi 👋 Closing this as we have not heard back from you. If you are still experiencing this issue and in need of assistance, please feel free to comment and provide us with any information previously requested by our team members so we can re-open this issue and be better able to assist you.
Thank you!
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
Authentication
Amplify Categories
auth
Environment information
Describe the bug
After upgrading to amplify v4, the previously authenticated session is lost:
Auth.currentAuthenticatedUser
,Auth.currentSession
, etc all throwing no user error. Downgrading to v3 or v2 will have the user logged in again, I've inspected AsyncStorage and can see that the auth session is persisted correctly & is not lost after upgrading.Expected behavior
Authenticated users should still be valid after upgrading to v4
Reproduction steps
aws-amplify
v3Auth.signIn
aws-amplify
v4Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response