You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, the fix for this problem should have been released with Authenticator v.1.2.3 #145
I tested this but unfortunately the sign-in is still not possible, here is the logs from Authenticator:
Moving to initial step: com.amplifyframework.ui.authenticator.enums.AuthenticatorStep$SignIn@42a7884
Moving to step: com.amplifyframework.ui.authenticator.enums.AuthenticatorStep$SignIn@42a7884
Encountered AuthException: SignedInException{message=There is already a user signed in., cause=null, recoverySuggestion=Sign out the user first before signing in again.}
Sending message: com.amplifyframework.ui.authenticator.util.UnknownErrorMessage@a46ea43
I suppose, after some debugging, that the fix was made to handleSignedIn() -method but maybe it also needs to be fixed in handleSignInFailure()?
Reproduction steps (if applicable)
In your cognito pool set your refresh token expiry to 60 minutes. This is under App Integration > client. (this is not necessary, but makes the issue much easier to reproduce)
Sign in with a user
Let the refresh token expire
Launch the app again, sign in screen will re-appear
Try to sign in again
Expected: Sign in is successful
Actual: "Something went wrong"
Code Snippet
// Put your code below this line.
Log output
// Put your logs below this line
amplifyconfiguration.json
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered:
I was really happy to find out that after updating to Authenticator 1.3.0, the sign-in started working in the above mentioned scenario. I really don't know why that is but that seems to be the case.
This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
Looked into this briefly and in Authenticator 1.2.3 the Amplify dependency was still on 2.18.0 - it should have been updated to a newer version in that release, but wasn't. The dependency was updated to Amplify 2.21.1 in Authenticator 1.3.0.
The actual fix was in Amplify 2.19.1, so this is why it wasn't resolved in Authenticator 1.2.3.
Before creating a new issue, please confirm:
Which UI component?
Authenticator
Gradle script dependencies
Environment information
Please include any relevant guides or documentation you're referencing
#145
Describe the bug
So, the fix for this problem should have been released with Authenticator v.1.2.3
#145
I tested this but unfortunately the sign-in is still not possible, here is the logs from Authenticator:
Moving to initial step: com.amplifyframework.ui.authenticator.enums.AuthenticatorStep$SignIn@42a7884
Moving to step: com.amplifyframework.ui.authenticator.enums.AuthenticatorStep$SignIn@42a7884
Encountered AuthException: SignedInException{message=There is already a user signed in., cause=null, recoverySuggestion=Sign out the user first before signing in again.}
Sending message: com.amplifyframework.ui.authenticator.util.UnknownErrorMessage@a46ea43
I suppose, after some debugging, that the fix was made to handleSignedIn() -method but maybe it also needs to be fixed in handleSignInFailure()?
Reproduction steps (if applicable)
In your cognito pool set your refresh token expiry to 60 minutes. This is under App Integration > client. (this is not necessary, but makes the issue much easier to reproduce)
Actual: "Something went wrong"
Code Snippet
// Put your code below this line.
Log output
amplifyconfiguration.json
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: