Fatal Exception: com.amplifyframework.auth.exceptions.InvalidStateException #2641
Closed
1 task done
Labels
auth
Related to the Auth category/plugins
bug
Something isn't working
closing soon
This issue will be closed in 7 days unless further comments are made.
Before opening, please confirm:
Language and Async Model
Kotlin - Coroutines
Amplify Categories
Authentication
Gradle script dependencies
Environment information
Please include any relevant guides or documentation you're referencing
https://docs.amplify.aws/android/build-a-backend/auth/set-up-auth/
Describe the bug
After logging out from one user, when try to login again with new user it is throwing :
Fatal Exception: com.amplifyframework.auth.exceptions.InvalidStateException
Auth state is an invalid state, cannot process the request.
com.amplifyframework.auth.cognito.RealAWSCognitoAuthPlugin$fetchAuthSession$1.invoke (RealAWSCognitoAuthPlugin.kt:1163)
com.amplifyframework.auth.cognito.RealAWSCognitoAuthPlugin$fetchAuthSession$1.invoke (RealAWSCognitoAuthPlugin.kt:1110)
com.amplifyframework.statemachine.StateMachine$getCurrentState$1.invokeSuspend (StateMachine.kt:121)
Reproduction steps (if applicable)
No response
Code Snippet
// Put your code below this line.
Log output
amplifyconfiguration.json
{
"UserAgent": "aws-amplify-cli/2.0",
"Version": "1.0",
"api": {
xxxx
}
},
"auth": {
"plugins": {
"awsCognitoAuthPlugin": {
"UserAgent": "aws-amplify-cli/0.1.0",
"Version": "0.1.0",
"IdentityManager": {
"Default": {}
},
"CredentialsProvider": {
"CognitoIdentity": {
"Default": {
"PoolId":xx,
"Region": "ap-south-1"
}
}
},
"CognitoUserPool": {
"Default": {
"PoolId": "ap-south-1_jvyEjtkKf",
"AppClientId": xx,
"Region": "ap-south-1"
}
},
"Auth": {
"Default": {
"authenticationFlowType": "CUSTOM_AUTH"
}
}
}
}
}
}
GraphQL Schema
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: