diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/sign_in_state_machine.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/sign_in_state_machine.dart index 5d65b00f8e..b5ee708705 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/sign_in_state_machine.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/sign_in_state_machine.dart @@ -660,8 +660,7 @@ final class SignInStateMachine final allowedMfaTypes = _allowedMfaTypes; // Exclude MfaType.sms from consideration final mfaTypesForSetup = allowedMfaTypes?.difference({MfaType.sms}); - if (allowedMfaTypes == null || - allowedMfaTypes.isEmpty) { + if (allowedMfaTypes == null || allowedMfaTypes.isEmpty) { throw const InvalidUserPoolConfigurationException( 'No eligible MFA types are allowed for setup.', recoverySuggestion: 'Check your user pool MFA configuration.',