fix(auth): redirect unverified users to email verification screen after sign-up - #69
Conversation
- Add `didChangeDependencies` to capture `_rootNavigator` once - Cancel `_redirectTimer` in `dispose` to prevent navigation after widget is unmounted - Pop the feedback dialog via `_rootNavigator` before pushing verify-email route - Remove redundant `.then()` callback that could not fire (dialog was non-dismissible)
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR updates Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🚀 Summary
Previously, when a user tried to sign up with an already-registered but unverified email, the app responded with a generic error dialog and left them on the sign-up screen with no way forward. This PR introduces dedicated handling for
EmailNotVerifiedFailureon the sign-up page, mirroring the behavior already present in the sign-in flow: a non-dismissible feedback dialog appears briefly, then after 2 seconds the app automatically pushes the verify-email route so the user can complete their confirmation without manually navigating there.