-
Notifications
You must be signed in to change notification settings - Fork 200
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
Amplify 2.15.2 when i first install the App it says user already signed in #3242
Comments
Would you be able to share the code example that you are trying and also verbose logs which can help us determine whats going on. You can enable verbose logging to the console by doing this before calling
Also would you be able to share if any app that uses amplify was ever installed on the device you are testing. |
No it was installed the very first time and i encountered the issue. After the second time this didnt happen |
here is the code sample
|
Another question i have is how to check if session is expired and is Amplify not smart enough to call fetchauthsession internally |
Your code sample is correct and should not cause any problems. Also I am not able to see code path where an already user signed in error would come up. If you see the error again, please share the verbose logs, so that I can see what is happening. Ideally if there is no user logged in before, keychain should be empty, and Amplify library will not be able to get any user details. Hence, it should never show a user as logged in when the Lib Amplify would not automatically refresh the session in the background. But that being said, if you call any other Amplify API's, they would call If for some reason, you want to force refresh the session, you can call
|
Describe the bug
Im working in siwft when i first install the App and login with amplify version Amplify 2.15.2 it says user already signed in . Im not sure why this is happening could you please tell.
Steps To Reproduce
Expected behavior
its should login even if i would have previously logged in in a different device
Amplify Framework Version
2.15.2
Amplify Categories
Auth
Dependency manager
Swift PM
Swift version
5.5
CLI version
2.15.2
Xcode version
14.2
Relevant log output
No response
Is this a regression?
Yes
Regression additional context
No response
Platforms
No response
OS Version
16+
Device
iPHONE 16
Specific to simulators
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: