aws-amplify / amplify-android

The fastest and easiest way to use AWS from your Android app.
https://docs.amplify.aws/lib/q/platform/android/
Apache License 2.0
244 stars 114 forks source link

Refresh access token doesn't work #2583

Closed doanpt closed 11 months ago

doanpt commented 1 year ago

Before opening, please confirm:

Language and Async Model

Kotlin - Coroutines

Amplify Categories

Authentication

Gradle script dependencies

```groovy implementation 'com.amazonaws:aws-android-sdk-cognitoidentityprovider:2.73.0' implementation 'com.amplifyframework:core:2.13.0' implementation 'com.amplifyframework:aws-auth-cognito:2.13.0' implementation 'com.amplifyframework:core-kotlin:2.13.0' ```

Environment information

``` ------------------------------------------------------------ Gradle 7.4 ------------------------------------------------------------ Build time: 2022-02-08 09:58:38 UTC Revision: f0d9291c04b90b59445041eaa75b2ee744162586 Kotlin: 1.5.31 Groovy: 3.0.9 Ant: Apache Ant(TM) version 1.10.11 compiled on July 10 2021 JVM: 11.0.20 (OpenLogic 11.0.20+8-adhoc..jdk11u) OS: Windows 11 10.0 amd64 ```

Please include any relevant guides or documentation you're referencing

No response

Describe the bug

Currently we are facing an issue of not being able to refresh the token after the token has expired on some Android devices (most of them are Samsung devices) with the following scenario:

  1. Log in successfully and navigate the user to the home screen,
  2. Turn off the screen and wait 1 hour until the token expires
  3. Turn on screen
  4. Amplify can not refresh token: the log line below is printed 12 times 09-08 19:22:00.260 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: RefreshUserPoolTokens Sending event ThrowError
  5. After 25 seconds, Amplify will get a new token. 08-09 19:22:27.650 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: PersistCredentials Sending event ReceivedCachedCredentials

Note: This issue occurred on amplify both of 0.1.32.0 and 2.13.0

Reproduction steps (if applicable)

  1. Log in successfully and navigate the user to the home screen,
  2. Turn off the screen and wait 1 hour until the token expires
  3. Turn on screen
  4. Amplify can not refresh token: the log line below is printed 12 times 09-08 19:22:00.260 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: RefreshUserPoolTokens Sending event ThrowError
  5. After 25 seconds, Amplify will get a new token. 08-09 19:22:27.650 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: PersistCredentials Sending event ReceivedCachedCredentials

Code Snippet

// Put your code below this line.
    private suspend fun getAWSCognitoAuthSession(): AWSCognitoAuthSession? {
        return runBlocking {
            try {
                val session = Amplify.Auth.fetchAuthSession()
                Timber.d("getAWSCognitoAuthSession Auth session = $session")
                session as AWSCognitoAuthSession
            } catch (error: AuthException) {
                Timber.d("getAWSCognitoAuthSession Failed to fetch auth session", error)
                null
            }
        }
    }

Log output

``` 09-08 18:20:44.839 10825 1567 1690 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a), authZState=SessionEstablished(amplifyCredential=UserAndIdentityPool(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), identityId=us-east-1:57e22837-f385-4c21-b2b2-1700f9d31f8e, credentials=AWSCredentials(accessKeyId = ASIAT***, secretAccessKey = JnKlU***, sessionToken = IQoJb***, expiration = 1694225939)))) 09-08 19:21:59.999 10825 1567 1690 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a), authZState=RefreshingSession(existingCredential=UserAndIdentityPool(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), identityId=us-east-1:57e22837-f385-4c21-b2b2-1700f9d31f8e, credentials=AWSCredentials(accessKeyId = ASIAT***, secretAccessKey = JnKlU***, sessionToken = IQoJb***, expiration = 1694225939)), refreshSessionState=NotStarted(id=))) 09-08 19:21:59.999 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitiateRefreshSession Starting execution 09-08 19:22:00.000 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitiateRefreshSession Sending event RefreshUserPoolTokens 09-08 19:22:00.009 10825 1567 1690 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a), authZState=RefreshingSession(existingCredential=UserAndIdentityPool(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), identityId=us-east-1:57e22837-f385-4c21-b2b2-1700f9d31f8e, credentials=AWSCredentials(accessKeyId = ASIAT***, secretAccessKey = JnKlU***, sessionToken = IQoJb***, expiration = 1694225939)), refreshSessionState=RefreshingUserPoolTokens(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***))))) 09-08 19:22:00.009 10825 1567 1834 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: RefreshUserPoolTokens Starting execution 09-08 19:22:00.011 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: LoadingStoredCredentials(id=) 09-08 19:22:00.012 10825 1567 1834 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=) 09-08 19:22:00.012 10825 1567 1834 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Starting execution 09-08 19:22:00.021 10825 1567 1834 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Sending event CompletedOperation 09-08 19:22:00.022 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Success(storedCredentials=ASFDevice(id=ab101db0-e95c-4a88-af2d-994ae2e0ae13:1694214442756)) 09-08 19:22:00.024 10825 1567 1834 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Starting execution 09-08 19:22:00.024 10825 1567 1834 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Sending event MoveToIdleState 09-08 19:22:00.025 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=) 09-08 19:22:00.045 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=) 09-08 19:22:00.045 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: LoadingStoredCredentials(id=) 09-08 19:22:00.046 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Starting execution 09-08 19:22:00.049 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Sending event CompletedOperation 09-08 19:22:00.049 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Success(storedCredentials=DeviceData(deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a)) 09-08 19:22:00.050 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Starting execution 09-08 19:22:00.050 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Sending event MoveToIdleState 09-08 19:22:00.050 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=) 09-08 19:22:00.260 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: RefreshUserPoolTokens Sending event ThrowError 09-08 19:22:00.262 10825 1567 1690 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a), authZState=Error(exception=SessionError(exception=aws.smithy.kotlin.runtime.http.HttpException: java.net.UnknownHostException: Unable to resolve host "cognito-idp.us-east-1.amazonaws.com": No address associated with hostname, amplifyCredential=UserAndIdentityPool(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), identityId=us-east-1:57e22837-f385-4c21-b2b2-1700f9d31f8e, credentials=AWSCredentials(accessKeyId = ASIAT***, secretAccessKey = JnKlU***, sessionToken = IQoJb***, expiration = 1694225939))))) 09-08 19:22:00.273 10825 1567 1690 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a), authZState=RefreshingSession(existingCredential=UserAndIdentityPool(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), identityId=us-east-1:57e22837-f385-4c21-b2b2-1700f9d31f8e, credentials=AWSCredentials(accessKeyId = ASIAT***, secretAccessKey = JnKlU***, sessionToken = IQoJb***, expiration = 1694225939)), refreshSessionState=NotStarted(id=))) 09-08 19:22:00.274 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitiateRefreshSession Starting execution 09-08 19:22:00.274 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitiateRefreshSession Sending event RefreshUserPoolTokens 09-08 19:22:00.275 10825 1567 1690 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a), authZState=RefreshingSession(existingCredential=UserAndIdentityPool(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), identityId=us-east-1:57e22837-f385-4c21-b2b2-1700f9d31f8e, credentials=AWSCredentials(accessKeyId = ASIAT***, secretAccessKey = JnKlU***, sessionToken = IQoJb***, expiration = 1694225939)), refreshSessionState=RefreshingUserPoolTokens(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***))))) 09-08 19:22:00.276 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: RefreshUserPoolTokens Starting execution 09-08 19:22:00.277 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=) 09-08 19:22:00.277 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: LoadingStoredCredentials(id=) 09-08 19:22:00.278 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Starting execution 09-08 19:22:00.281 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Sending event CompletedOperation 09-08 19:22:00.281 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Success(storedCredentials=ASFDevice(id=ab101db0-e95c-4a88-af2d-994ae2e0ae13:1694214442756)) 09-08 19:22:00.282 10825 1567 1844 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Starting execution 09-08 19:22:00.282 10825 1567 1844 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Sending event MoveToIdleState 09-08 19:22:00.282 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=) 09-08 19:22:00.288 10825 1567 1834 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=) 09-08 19:22:00.289 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: LoadingStoredCredentials(id=) 09-08 19:22:00.289 10825 1567 1834 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Starting execution 09-08 19:22:00.291 10825 1567 1834 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Sending event CompletedOperation 09-08 19:22:00.292 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Success(storedCredentials=DeviceData(deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a)) 09-08 19:22:00.292 10825 1567 1834 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Starting execution 09-08 19:22:00.292 10825 1567 1834 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Sending event MoveToIdleState 09-08 19:22:00.293 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=) 09-08 19:22:00.316 10825 1567 1834 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: RefreshUserPoolTokens Sending event ThrowError 09-08 19:22:01.474 10825 1567 1690 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a), authZState=Error(exception=SessionError(exception=aws.smithy.kotlin.runtime.http.HttpException: java.net.UnknownHostException: Unable to resolve host "cognito-idp.us-east-1.amazonaws.com": No address associated with hostname, amplifyCredential=UserAndIdentityPool(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), identityId=us-east-1:57e22837-f385-4c21-b2b2-1700f9d31f8e, credentials=AWSCredentials(accessKeyId = ASIAT***, secretAccessKey = JnKlU***, sessionToken = IQoJb***, expiration = 1694225939))))) 09-08 19:22:01.480 10825 1567 1690 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a), authZState=RefreshingSession(existingCredential=UserAndIdentityPool(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), identityId=us-east-1:57e22837-f385-4c21-b2b2-1700f9d31f8e, credentials=AWSCredentials(accessKeyId = ASIAT***, secretAccessKey = JnKlU***, sessionToken = IQoJb***, expiration = 1694225939)), refreshSessionState=NotStarted(id=))) 09-08 19:22:01.481 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitiateRefreshSession Starting execution 09-08 19:22:01.481 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitiateRefreshSession Sending event RefreshUserPoolTokens 09-08 19:22:01.486 10825 1567 1690 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a), authZState=RefreshingSession(existingCredential=UserAndIdentityPool(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), identityId=us-east-1:57e22837-f385-4c21-b2b2-1700f9d31f8e, credentials=AWSCredentials(accessKeyId = ASIAT***, secretAccessKey = JnKlU***, sessionToken = IQoJb***, expiration = 1694225939)), refreshSessionState=RefreshingUserPoolTokens(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***))))) 09-08 19:22:01.487 10825 1567 1844 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: RefreshUserPoolTokens Starting execution 09-08 19:22:01.488 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: LoadingStoredCredentials(id=) 09-08 19:22:01.488 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=) 09-08 19:22:01.488 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Starting execution 09-08 19:22:01.489 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Sending event CompletedOperation 09-08 19:22:01.489 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Success(storedCredentials=ASFDevice(id=ab101db0-e95c-4a88-af2d-994ae2e0ae13:1694214442756)) 09-08 19:22:01.489 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Starting execution 09-08 19:22:01.489 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Sending event MoveToIdleState 09-08 19:22:01.489 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=) 09-08 19:22:01.491 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: LoadingStoredCredentials(id=) 09-08 19:22:01.491 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=) 09-08 19:22:01.491 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Starting execution 09-08 19:22:01.492 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Sending event CompletedOperation 09-08 19:22:01.492 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Success(storedCredentials=DeviceData(deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a)) 09-08 19:22:01.492 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Starting execution 09-08 19:22:01.492 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Sending event MoveToIdleState 09-08 19:22:01.492 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=) 09-08 19:22:01.504 10825 1567 1712 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: RefreshUserPoolTokens Sending event ThrowError 09-08 19:22:01.506 10825 1567 1690 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a), authZState=Error(exception=SessionError(exception=aws.smithy.kotlin.runtime.http.HttpException: java.net.UnknownHostException: Unable to resolve host "cognito-idp.us-east-1.amazonaws.com": No address associated with hostname, amplifyCredential=UserAndIdentityPool(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), identityId=us-east-1:57e22837-f385-4c21-b2b2-1700f9d31f8e, credentials=AWSCredentials(accessKeyId = ASIAT***, secretAccessKey = JnKlU***, sessionToken = IQoJb***, expiration = 1694225939))))) 09-08 19:22:01.860 10825 1567 1690 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a), authZState=RefreshingSession(existingCredential=UserAndIdentityPool(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), identityId=us-east-1:57e22837-f385-4c21-b2b2-1700f9d31f8e, credentials=AWSCredentials(accessKeyId = ASIAT***, secretAccessKey = JnKlU***, sessionToken = IQoJb***, expiration = 1694225939)), refreshSessionState=NotStarted(id=))) 09-08 19:22:01.860 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitiateRefreshSession Starting execution 09-08 19:22:01.860 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitiateRefreshSession Sending event RefreshUserPoolTokens 09-08 19:22:01.860 10825 1567 1690 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a), authZState=RefreshingSession(existingCredential=UserAndIdentityPool(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), identityId=us-east-1:57e22837-f385-4c21-b2b2-1700f9d31f8e, credentials=AWSCredentials(accessKeyId = ASIAT***, secretAccessKey = JnKlU***, sessionToken = IQoJb***, expiration = 1694225939)), refreshSessionState=RefreshingUserPoolTokens(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***))))) 09-08 19:22:01.860 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: RefreshUserPoolTokens Starting execution 09-08 19:22:01.861 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=) 09-08 19:22:01.861 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: LoadingStoredCredentials(id=) 09-08 19:22:01.861 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Starting execution 09-08 19:22:01.862 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Sending event CompletedOperation 09-08 19:22:01.862 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Success(storedCredentials=ASFDevice(id=ab101db0-e95c-4a88-af2d-994ae2e0ae13:1694214442756)) 09-08 19:22:01.863 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Starting execution 09-08 19:22:01.863 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Sending event MoveToIdleState 09-08 19:22:01.863 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=) 09-08 19:22:01.866 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=) 09-08 19:22:01.866 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: LoadingStoredCredentials(id=) 09-08 19:22:01.866 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Starting execution 09-08 19:22:01.867 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Sending event CompletedOperation 09-08 19:22:01.867 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Success(storedCredentials=DeviceData(deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a)) 09-08 19:22:01.867 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Starting execution 09-08 19:22:01.867 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Sending event MoveToIdleState 09-08 19:22:01.867 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=) 09-08 19:22:01.875 10825 1567 1712 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: RefreshUserPoolTokens Sending event ThrowError 09-08 19:22:01.876 10825 1567 1690 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a), authZState=Error(exception=SessionError(exception=aws.smithy.kotlin.runtime.http.HttpException: java.net.UnknownHostException: Unable to resolve host "cognito-idp.us-east-1.amazonaws.com": No address associated with hostname, amplifyCredential=UserAndIdentityPool(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), identityId=us-east-1:57e22837-f385-4c21-b2b2-1700f9d31f8e, credentials=AWSCredentials(accessKeyId = ASIAT***, secretAccessKey = JnKlU***, sessionToken = IQoJb***, expiration = 1694225939))))) 09-08 19:22:01.938 10825 1567 1690 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a), authZState=RefreshingSession(existingCredential=UserAndIdentityPool(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), identityId=us-east-1:57e22837-f385-4c21-b2b2-1700f9d31f8e, credentials=AWSCredentials(accessKeyId = ASIAT***, secretAccessKey = JnKlU***, sessionToken = IQoJb***, expiration = 1694225939)), refreshSessionState=NotStarted(id=))) 09-08 19:22:01.938 10825 1567 1712 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitiateRefreshSession Starting execution 09-08 19:22:01.938 10825 1567 1712 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitiateRefreshSession Sending event RefreshUserPoolTokens 09-08 19:22:01.938 10825 1567 1690 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a), authZState=RefreshingSession(existingCredential=UserAndIdentityPool(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), identityId=us-east-1:57e22837-f385-4c21-b2b2-1700f9d31f8e, credentials=AWSCredentials(accessKeyId = ASIAT***, secretAccessKey = JnKlU***, sessionToken = IQoJb***, expiration = 1694225939)), refreshSessionState=RefreshingUserPoolTokens(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***))))) 09-08 19:22:01.938 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: RefreshUserPoolTokens Starting execution 09-08 19:22:01.940 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: LoadingStoredCredentials(id=) 09-08 19:22:01.940 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=) 09-08 19:22:01.941 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Starting execution 09-08 19:22:01.944 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Sending event CompletedOperation 09-08 19:22:01.944 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Success(storedCredentials=ASFDevice(id=ab101db0-e95c-4a88-af2d-994ae2e0ae13:1694214442756)) 09-08 19:22:01.944 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Starting execution 09-08 19:22:01.944 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Sending event MoveToIdleState 09-08 19:22:01.945 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=) 09-08 19:22:01.946 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=) 09-08 19:22:01.946 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: LoadingStoredCredentials(id=) 09-08 19:22:01.947 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Starting execution 09-08 19:22:01.947 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Sending event CompletedOperation 09-08 19:22:01.947 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Success(storedCredentials=DeviceData(deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a)) 09-08 19:22:01.947 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Starting execution 09-08 19:22:01.948 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Sending event MoveToIdleState 09-08 19:22:01.948 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=) 09-08 19:22:01.957 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: RefreshUserPoolTokens Sending event ThrowError 09-08 19:22:01.960 10825 1567 1690 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a), authZState=Error(exception=SessionError(exception=aws.smithy.kotlin.runtime.http.HttpException: java.net.UnknownHostException: Unable to resolve host "cognito-idp.us-east-1.amazonaws.com": No address associated with hostname, amplifyCredential=UserAndIdentityPool(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), identityId=us-east-1:57e22837-f385-4c21-b2b2-1700f9d31f8e, credentials=AWSCredentials(accessKeyId = ASIAT***, secretAccessKey = JnKlU***, sessionToken = IQoJb***, expiration = 1694225939))))) 09-08 19:22:02.004 10825 1567 1690 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a), authZState=RefreshingSession(existingCredential=UserAndIdentityPool(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), identityId=us-east-1:57e22837-f385-4c21-b2b2-1700f9d31f8e, credentials=AWSCredentials(accessKeyId = ASIAT***, secretAccessKey = JnKlU***, sessionToken = IQoJb***, expiration = 1694225939)), refreshSessionState=NotStarted(id=))) 09-08 19:22:02.004 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitiateRefreshSession Starting execution 09-08 19:22:02.004 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitiateRefreshSession Sending event RefreshUserPoolTokens 09-08 19:22:02.009 10825 1567 1690 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a), authZState=RefreshingSession(existingCredential=UserAndIdentityPool(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), identityId=us-east-1:57e22837-f385-4c21-b2b2-1700f9d31f8e, credentials=AWSCredentials(accessKeyId = ASIAT***, secretAccessKey = JnKlU***, sessionToken = IQoJb***, expiration = 1694225939)), refreshSessionState=RefreshingUserPoolTokens(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***))))) 09-08 19:22:02.011 10825 1567 1834 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: RefreshUserPoolTokens Starting execution 09-08 19:22:02.011 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: LoadingStoredCredentials(id=) 09-08 19:22:02.012 10825 1567 1834 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=) 09-08 19:22:02.012 10825 1567 1834 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Starting execution 09-08 19:22:02.013 10825 1567 1834 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Sending event CompletedOperation 09-08 19:22:02.017 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Success(storedCredentials=ASFDevice(id=ab101db0-e95c-4a88-af2d-994ae2e0ae13:1694214442756)) 09-08 19:22:02.017 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Starting execution 09-08 19:22:02.017 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Sending event MoveToIdleState 09-08 19:22:02.018 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=) 09-08 19:22:02.021 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: LoadingStoredCredentials(id=) 09-08 19:22:02.021 10825 1567 1834 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=) 09-08 19:22:02.021 10825 1567 1834 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Starting execution 09-08 19:22:02.023 10825 1567 1834 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Sending event CompletedOperation 09-08 19:22:02.027 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Success(storedCredentials=DeviceData(deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a)) 09-08 19:22:02.027 10825 1567 1834 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Starting execution 09-08 19:22:02.027 10825 1567 1834 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Sending event MoveToIdleState 09-08 19:22:02.028 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=) 09-08 19:22:02.054 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: RefreshUserPoolTokens Sending event ThrowError 09-08 19:22:02.055 10825 1567 1690 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a), authZState=Error(exception=SessionError(exception=aws.smithy.kotlin.runtime.http.HttpException: java.net.UnknownHostException: Unable to resolve host "cognito-idp.us-east-1.amazonaws.com": No address associated with hostname, amplifyCredential=UserAndIdentityPool(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), identityId=us-east-1:57e22837-f385-4c21-b2b2-1700f9d31f8e, credentials=AWSCredentials(accessKeyId = ASIAT***, secretAccessKey = JnKlU***, sessionToken = IQoJb***, expiration = 1694225939))))) 09-08 19:22:25.770 10825 1567 1690 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a), authZState=RefreshingSession(existingCredential=UserAndIdentityPool(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), identityId=us-east-1:57e22837-f385-4c21-b2b2-1700f9d31f8e, credentials=AWSCredentials(accessKeyId = ASIAT***, secretAccessKey = JnKlU***, sessionToken = IQoJb***, expiration = 1694225939)), refreshSessionState=NotStarted(id=))) 09-08 19:22:25.771 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitiateRefreshSession Starting execution 09-08 19:22:25.771 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: InitiateRefreshSession Sending event RefreshUserPoolTokens 09-08 19:22:25.771 10825 1567 1690 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a), authZState=RefreshingSession(existingCredential=UserAndIdentityPool(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), identityId=us-east-1:57e22837-f385-4c21-b2b2-1700f9d31f8e, credentials=AWSCredentials(accessKeyId = ASIAT***, secretAccessKey = JnKlU***, sessionToken = IQoJb***, expiration = 1694225939)), refreshSessionState=RefreshingUserPoolTokens(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***))))) 09-08 19:22:25.772 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: RefreshUserPoolTokens Starting execution 09-08 19:22:25.772 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=) 09-08 19:22:25.772 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: LoadingStoredCredentials(id=) 09-08 19:22:25.773 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Starting execution 09-08 19:22:25.774 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Sending event CompletedOperation 09-08 19:22:25.775 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Success(storedCredentials=ASFDevice(id=ab101db0-e95c-4a88-af2d-994ae2e0ae13:1694214442756)) 09-08 19:22:25.775 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Starting execution 09-08 19:22:25.775 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Sending event MoveToIdleState 09-08 19:22:25.775 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=) 09-08 19:22:25.779 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=) 09-08 19:22:25.779 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: LoadingStoredCredentials(id=) 09-08 19:22:25.779 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Starting execution 09-08 19:22:25.780 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: LoadCredentialStore Sending event CompletedOperation 09-08 19:22:25.780 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Success(storedCredentials=DeviceData(deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a)) 09-08 19:22:25.780 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Starting execution 09-08 19:22:25.780 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Sending event MoveToIdleState 09-08 19:22:25.781 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=) 09-08 19:22:26.587 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: RefreshUserPoolTokens Sending event RefreshAuthSession 09-08 19:22:26.588 10825 1567 1690 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a), authZState=RefreshingSession(existingCredential=UserAndIdentityPool(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), identityId=us-east-1:57e22837-f385-4c21-b2b2-1700f9d31f8e, credentials=AWSCredentials(accessKeyId = ASIAT***, secretAccessKey = JnKlU***, sessionToken = IQoJb***, expiration = 1694225939)), refreshSessionState=RefreshingAuthSession(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), fetchAuthSessionState=NotStarted(id=)))) 09-08 19:22:26.588 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: RefreshAuthSession Starting execution 09-08 19:22:26.588 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: RefreshAuthSession Sending event FetchIdentity 09-08 19:22:26.590 10825 1567 1690 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a), authZState=RefreshingSession(existingCredential=UserAndIdentityPool(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), identityId=us-east-1:57e22837-f385-4c21-b2b2-1700f9d31f8e, credentials=AWSCredentials(accessKeyId = ASIAT***, secretAccessKey = JnKlU***, sessionToken = IQoJb***, expiration = 1694225939)), refreshSessionState=RefreshingAuthSession(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), fetchAuthSessionState=FetchingIdentity(logins=CognitoUserPoolLogins(region=us-east-1, poolId=us-east-1_*********, idToken=eyJraWQiOiJHTWo2WkZadEVWV2lkcVpBMmxYakxVazExY0NnVTZpVGJHMTRyVlQ0bGpZPSIsImFsZyI6IlJTMjU2In0.eyJzdWIiOiIzMDVjMWE3ZC1mMjY3LTRlYzktOTc3NS04MGE3Mzc5OTM4ZTYiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfQmpvdk5FRjBJIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjp0cnVlLCJjb2duaXRvOnVzZXJuYW1lIjoiZnB0X3BtYUBnbWFpbC5jb20iLCJvcmlnaW5fanRpIjoiZTJiNWRkMDQtMzVlNy00ZmQ4LTg3YjYtZWU4MzZlZDBkNjFhIiwiYXVkIjoiNWJ1ODlxcWI ... 09-08 19:22:26.590 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: FetchIdentity Starting execution 09-08 19:22:27.377 10825 1567 1712 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: FetchIdentity Sending event FetchAwsCredentials 09-08 19:22:27.380 10825 1567 1690 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a), authZState=RefreshingSession(existingCredential=UserAndIdentityPool(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), identityId=us-east-1:57e22837-f385-4c21-b2b2-1700f9d31f8e, credentials=AWSCredentials(accessKeyId = ASIAT***, secretAccessKey = JnKlU***, sessionToken = IQoJb***, expiration = 1694225939)), refreshSessionState=RefreshingAuthSession(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), fetchAuthSessionState=FetchingAWSCredentials(identityId=us-east-1:57e22837-f385-4c21-b2b2-1700f9d31f8e, logins=CognitoUserPoolLogins(region=us-east-1, poolId=us-east-1_*********, idToken=eyJraWQiOiJHTWo2WkZadEVWV2lkcVpBMmxYakxVazExY0NnVTZpVGJHMTRyVlQ0bGpZPSIsImFsZyI6IlJTMjU2In0.eyJzdWIiOiIzMDVjMWE3ZC1mMjY3LTRlYzktOTc3NS04MGE3Mzc5OTM4ZTYiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfQmpvdk5FRjBJIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjp0cnVlLCJjb2duaXRvOnVzZXJuYW1lIjoiZnB0X3BtYUBnbWFpbC5jb20iLCJvcmlnaW5fanRpIjoiZTJiNW ... 09-08 19:22:27.381 10825 1567 1712 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: FetchAWSCredentials Starting execution 09-08 19:22:27.637 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: FetchAWSCredentials Sending event Fetched 09-08 19:22:27.638 10825 1567 1690 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a), authZState=RefreshingSession(existingCredential=UserAndIdentityPool(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), identityId=us-east-1:57e22837-f385-4c21-b2b2-1700f9d31f8e, credentials=AWSCredentials(accessKeyId = ASIAT***, secretAccessKey = JnKlU***, sessionToken = IQoJb***, expiration = 1694225939)), refreshSessionState=Refreshed(id=))) 09-08 19:22:27.639 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: NotifySessionRefreshed Starting execution 09-08 19:22:27.639 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: NotifySessionEstablished Starting execution 09-08 19:22:27.639 10825 1567 1845 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: NotifySessionRefreshed Sending event Refreshed 09-08 19:22:27.639 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: NotifySessionEstablished Sending event Fetched 09-08 19:22:27.641 10825 1567 1690 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a), authZState=StoringCredentials(amplifyCredential=UserAndIdentityPool(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), identityId=us-east-1:57e22837-f385-4c21-b2b2-1700f9d31f8e, credentials=AWSCredentials(accessKeyId = ASIAT***, secretAccessKey = S0AAF***, sessionToken = IQoJb***, expiration = 1694229747)))) 09-08 19:22:27.641 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: PersistCredentials Starting execution 09-08 19:22:27.642 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=) 09-08 19:22:27.643 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: StoringCredentials(id=) 09-08 19:22:27.643 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: StoreCredentials Starting execution 09-08 19:22:27.649 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: StoreCredentials Sending event CompletedOperation 09-08 19:22:27.649 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Success(storedCredentials=UserAndIdentityPool(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), identityId=us-east-1:57e22837-f385-4c21-b2b2-1700f9d31f8e, credentials=AWSCredentials(accessKeyId = ASIAT***, secretAccessKey = S0AAF***, sessionToken = IQoJb***, expiration = 1694229747))) 09-08 19:22:27.650 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Starting execution 09-08 19:22:27.650 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: MoveToIdleState Sending event MoveToIdleState 09-08 19:22:27.650 10825 1567 1728 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Credential Store State Change: Idle(id=) 09-08 19:22:27.650 10825 1567 1688 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: PersistCredentials Sending event ReceivedCachedCredentials 09-08 19:22:27.651 10825 1567 1690 V amplify:aws-cognito-auth:AWSCognitoAuthPlugin: Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@94377a), authZState=SessionEstablished(amplifyCredential=UserAndIdentityPool(signedInData=SignedInData(userId=305c1a7d-f267-4ec9-9775-************, username=abcdef@gmail.com, signedInDate=Fri Sep 08 16:07:25 PDT 2023, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), identityId=us-east-1:57e22837-f385-4c21-b2b2-1700f9d31f8e, credentials=AWSCredentials(accessKeyId = ASIAT***, secretAccessKey = S0AAF***, sessionToken = IQoJb***, expiration = 1694229747)))) ```

amplifyconfiguration.json

{ "UserAgent": "aws-amplify-cli/2.0", "Version": "1.0", "auth": { "plugins": { "awsCognitoAuthPlugin": { "UserAgent": "aws-amplify/cli", "Version": "0.1.0", "Auth": { "Default": { "authenticationFlowType": "CUSTOM_AUTH_WITH_SRP" } }, "CredentialsProvider": { "CognitoIdentity": { "Default": { "PoolId": "us-east-1:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "Region": "us-east-1" } } }, "IdentityManager": { "Default": "default" }, "CognitoUserPool": { "Default": { "AppClientSecret": "", "AppClientId": "xxxxxxxxxxxxxxxxxxxxxxx", "PoolId": "us-east-1_xxxxxxxx", "PinpointAppId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "Region": "us-east-1" } }, "PinpointAnalytics": { "AppId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "Region": "us-east-1" }, "AppSync": { "Default": { "ApiUrl": "https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.appsync-api.us-east-1.amazonaws.com/graphql", "Region": "us-east-1", "AuthMode": "AMAZON_COGNITO_USER_POOLS" } } } } } }

GraphQL Schema

```graphql // Put your schema below this line ```

Additional information and screenshots

No response

tylerjroach commented 1 year ago

@doanpt Are you saying that at ~ 25 seconds the issue resolves itself?

The provided logs show No address associated with hostname errors. This seems to indicate that the device is not connected to the internet.

This would make sense why you are seeing repeated failures that being working after some time. Is it possible the specific device is in a power saving mode and disconnecting from wifi while the screen is off, and taking some time to reconnect once turned back on?

gpanshu commented 11 months ago

Closing due to inactivity. Please create a new issue if you are still experiencing issues.

github-actions[bot] commented 11 months ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

swati-bajaj commented 3 months ago

I am facing similar issue. Once the authtoken expires after 1hr, the user is not logged back in using the refresh token. Infact when debugging, i found that in CognitoUser class, inside readCachedTokens(), all the tokens are null.

tylerjroach commented 2 months ago

@swati-bajaj Please open a new issue with more information if you are facing an issue. I should mention that there is no CognitoUser class in Amplify Android. CognitoUser is only found in the AWS Android SDK. If you are using Amplify v1 (which uses AWS Android SDK under the hood), please first update to Amplify v2. Amplify v1 is no longer supported.