ConfirmForgotPassword pauses hubSubscription indefinitely if an exception occurs #5655
Open
3 of 14 tasks
Labels
Authenticator
Issues related to the Authenticator UI Component
bug
Something is not working; the issue has reproducible steps and has been reproduced
pending-release
Issues that have been addressed in main but have not been released
Description
When the
_confirmResetPassword()
method inside ofauth_bloc.dart
experiences an exception (like when entering an invalid confirmation code), the hub subscription does not resume. This results in subsequent events not being handled by the auth bloc, which in turn causes the ConfirmForgotPassword form to get stuck in an infinite loading state if the "Submit" button is pressed again.I replicated the package locally and it looks like adding a
yield* const Stream.empty()
at the end of the method resolves this issue, a pattern that looks like it's being used in the other event handler methods.Categories
Steps to Reproduce
Screenshots
CleanShot.2024-11-06.at.11.14.11.mp4
Platforms
Flutter Version
3.24.0
Amplify Flutter Version
2.4.0
Deployment Method
Custom Pipeline
Schema
No response
The text was updated successfully, but these errors were encountered: