Skip to content

Commit 979f163

Browse files
authored
Merge branch 'main' into dengdan-stress-test
2 parents 881fb5d + f516445 commit 979f163

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Guide](https://docs.amplify.aws/start/q/integration/android).
2424

2525
| Category | AWS Provider | Description |
2626
|-------------------------------------------------------------------------------------------------|--------------|--------------------------------------------|
27-
| **[Authentication](https://docs.amplify.aws/lib/devpreview/getting-started/q/platform/android/)** | Cognito | Building blocks to create auth experiences <br> *Note: Authentication category only supports **Sign Up**, **Sign In**, **Sign Out**, **Fetch Auth Session** and **getCurrentUser** API's.* |
27+
| **[Authentication](https://docs.amplify.aws/lib/devpreview/getting-started/q/platform/android/)** | Cognito | Building blocks to create auth experiences |
2828
| **[Storage](https://docs.amplify.aws/lib/storage/getting-started/q/platform/android)** | S3 | Manages content in public, protected, private storage buckets |
2929
| **[DataStore](https://docs.amplify.aws/lib/datastore/getting-started/q/platform/android)** | AppSync | Programming model for shared and distributed data, with simple online/offline synchronization |
3030
| **[API (GraphQL)](https://docs.amplify.aws/lib/graphqlapi/getting-started/q/platform/android)** | AppSync | Interact with your GraphQL or AppSync endpoint |

aws-auth-cognito/src/main/java/com/amplifyframework/statemachine/codegen/states/CredentialStoreState.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ internal sealed class CredentialStoreState : State {
6464
val action = credentialStoreActions.loadCredentialStoreAction(storeEvent.credentialType)
6565
StateResolution(LoadingStoredCredentials(), listOf(action))
6666
}
67-
is CredentialStoreEvent.EventType.ThrowError -> StateResolution(Error(storeEvent.error))
67+
is CredentialStoreEvent.EventType.ThrowError -> {
68+
val action = credentialStoreActions.moveToIdleStateAction()
69+
StateResolution(Error(storeEvent.error), listOf(action))
70+
}
6871
else -> defaultResolution
6972
}
7073
is LoadingStoredCredentials, is StoringCredentials, is ClearingCredentials -> when (storeEvent) {
@@ -96,8 +99,7 @@ internal sealed class CredentialStoreState : State {
9699
}
97100
is Success, is Error -> when (storeEvent) {
98101
is CredentialStoreEvent.EventType.MoveToIdleState -> {
99-
val action = credentialStoreActions.moveToIdleStateAction()
100-
StateResolution(Idle(), listOf(action))
102+
StateResolution(Idle(), listOf())
101103
}
102104
else -> StateResolution(oldState)
103105
}

0 commit comments

Comments
 (0)