Amplify.Auth.fetchAuthSession return isSigned = false. #2946
Labels
auth
Related to the Auth category/plugins
bug
Something isn't working
pending-maintainer-response
Issue is pending response from an Amplify team member
Before opening, please confirm:
Language and Async Model
Kotlin
Amplify Categories
Authentication
Gradle script dependencies
Environment information
Please include any relevant guides or documentation you're referencing
No response
Describe the bug
I am using Amplify android for authentication in my application. I signed in using Amplify.Auth.signIn but when I close application and start again and call Amplify.Auth.fetchAuthSession I get below error
AWSCognitoAuthSession(isSignedIn=false, identityIdResult=AuthSessionResult{value=ap-southeast-1:xxxxx-xxxx-xxxxxxxxxxxx, error=null, type=SUCCESS},
.Also I use AWSSdk for awssigner authorization
`class AwsInterceptor(
private val awsCredentials: CognitoCachingCredentialsProvider, // AWS credentials
private val serviceName: String, // Service to sign requests for (e.g., execute-api)
region: String // AWS region (e.g., ap-southeast-1)
) : Interceptor {
}`
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",
"auth": {
"plugins": {
"awsCognitoAuthPlugin": {
"UserAgent": "aws-amplify-cli/0.1.0",
"Version": "0.1.0",
"IdentityManager": {
"Default": {}
},
"CredentialsProvider": {
"CognitoIdentity": {
"Default": {
"PoolId": "ap-southeast-1:xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx",
"Region": "ap-southeast-1"
}
}
},
"CognitoUserPool": {
"Default": {
"PoolId": "ap-southeast-1_xxxxxxx",
"AppClientId": "xxxxxxxxxxxx",
"AppClientSecret": "xxxxxxxxxxxxxxxxxxx",
"Region": "ap-southeast-1"
}
},
"Auth": {
"Default": {
"authenticationFlowType": "CUSTOM_AUTH",
"socialProviders": [],
"usernameAttributes": [
"EMAIL"
],
"signupAttributes": [
"EMAIL"
],
"passwordProtectionSettings": {
"passwordPolicyMinLength": 8,
"passwordPolicyCharacters": []
},
"mfaConfiguration": "OPTIONAL",
"mfaTypes": [
"EMAIL"
],
"verificationMechanisms": [
"EMAIL"
]
}
}
}
}
}
}_
GraphQL Schema
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: