Closed Mehdi-android closed 1 week ago
Hi @Mehdi-android, thank you for submitting the issue! One of our team members would investigate it as soon as possible. In the meantime, could you share your logs as well as session details before and after relaunching the app? This will help our investigation.
Actually issue was I was using amazonawscore as well as amplify sdk, which was causing the issue. I am only using amplify now which resolved the issue.
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.
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
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": "CUSTOMAUTH", "socialProviders": [], "usernameAttributes": [ "EMAIL" ], "signupAttributes": [ "EMAIL" ], "passwordProtectionSettings": { "passwordPolicyMinLength": 8, "passwordPolicyCharacters": [] }, "mfaConfiguration": "OPTIONAL", "mfaTypes": [ "EMAIL" ], "verificationMechanisms": [ "EMAIL" ] } } } } } }
GraphQL Schema
Additional information and screenshots
No response