diff --git a/packages/authenticator/amplify_authenticator/lib/src/blocs/auth/auth_bloc.dart b/packages/authenticator/amplify_authenticator/lib/src/blocs/auth/auth_bloc.dart index 00c6eb222d..5604f7bd21 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/blocs/auth/auth_bloc.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/blocs/auth/auth_bloc.dart @@ -301,6 +301,8 @@ class StateMachineBloc } on Exception catch (e) { _exceptionController.add(AuthenticatorException(e)); } + // Emit empty event to resolve bug with broken event handling on web (possible DDC issue) + yield* const Stream.empty(); } Stream _resetPassword(AuthResetPasswordData data) async* { @@ -311,6 +313,8 @@ class StateMachineBloc } on Exception catch (e) { _exceptionController.add(AuthenticatorException(e)); } + // Emit empty event to resolve bug with broken event handling on web (possible DDC issue) + yield* const Stream.empty(); } void _notifyCodeSent(String? destination) {