-
Notifications
You must be signed in to change notification settings - Fork 535
Feature: Adds OTP cooldown timer #6439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Adds OTP cooldown timer #6439
Conversation
🦋 Changeset detectedLatest commit: 350ffcd The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
❌ Your patch status has failed because the patch coverage (0.00%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #6439 +/- ##
==========================================
- Coverage 54.64% 54.62% -0.03%
==========================================
Files 874 874
Lines 54708 54732 +24
Branches 3707 3708 +1
==========================================
Hits 29896 29896
- Misses 24717 24741 +24
Partials 95 95
🚀 New features to boost your workflow:
|
Merge activity
|
PR-Codex overview
This PR introduces a countdown feature for email cooldown in the
OTPLoginUI
component. It prevents users from resending the code until the countdown reaches zero, enhancing user experience by visually indicating when they can resend the code.Detailed summary
countdown
initialized to 0.countdown
to 60 seconds when an email is sent.useEffect
hook to manage the countdown timer.LinkButton
to disable resending while the countdown is active and show the remaining time.