diff --git a/aws-auth-cognito/src/main/java/com/amplifyframework/statemachine/codegen/states/SignInState.kt b/aws-auth-cognito/src/main/java/com/amplifyframework/statemachine/codegen/states/SignInState.kt index 35a1a9332..a4bf0527e 100644 --- a/aws-auth-cognito/src/main/java/com/amplifyframework/statemachine/codegen/states/SignInState.kt +++ b/aws-auth-cognito/src/main/java/com/amplifyframework/statemachine/codegen/states/SignInState.kt @@ -278,6 +278,10 @@ internal sealed class SignInState : State { is SignInEvent.EventType.FinalizeSignIn -> { StateResolution(SignedIn()) } + is SignInEvent.EventType.ConfirmDevice -> { + val action = signInActions.confirmDevice(signInEvent) + StateResolution(ConfirmingDevice(), listOf(action)) + } is SignInEvent.EventType.ThrowError -> StateResolution(Error(signInEvent.exception)) else -> defaultResolution