Skip to content

Commit

Permalink
fix(authenticator): recover from exceptions during reset password flow (
Browse files Browse the repository at this point in the history
  • Loading branch information
Equartey authored Nov 13, 2024
1 parent e4b6b68 commit 2ee74bb
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<AuthState> _resetPassword(AuthResetPasswordData data) async* {
Expand All @@ -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) {
Expand Down

0 comments on commit 2ee74bb

Please sign in to comment.