ConfirmForgotPassword pauses hubSubscription indefinitely if an exception occurs #5655
Open
3 of 14 tasks
Labels
auth
Issues related to the Auth Category
Authenticator
Issues related to the Authenticator UI Component
pending-triage
This issue is in the backlog of issues to triage
to-be-reproduced
Issues that have not been reproduced yet, but have reproduction steps provided
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: