Skip to content

Show the retry time when the sign-in code is rate limited#815

Merged
rzueger merged 1 commit into
developfrom
signin-code-retry-after
Jun 17, 2026
Merged

Show the retry time when the sign-in code is rate limited#815
rzueger merged 1 commit into
developfrom
signin-code-retry-after

Conversation

@rzueger

@rzueger rzueger commented Jun 17, 2026

Copy link
Copy Markdown
Member

Builds on the sign-in code rate limiting. The 429 response now includes retryAfterSeconds (and a Retry-After header), threaded through to the UI so the email-login form and the OTP screen show a clear 'please try again in about X minutes' message for the hourly-cap case (short cooldowns keep the existing 'wait a moment' message). Also raises the hourly cap from 5 to 10 so legitimate retries (lost emails, spam folder) have more headroom before hitting it. Adds a rateLimitMessage helper + tests, backend retry-time tests, and reducer/OTP coverage.

Return retryAfterSeconds (and a Retry-After header) on the 429
from generateSignInCode, and show "try again in about X minutes"
on the email and OTP screens for the hourly-cap case; short
cooldowns keep the "wait a moment" message. Raise the hourly
cap from 5 to 10 to give legitimate retries more headroom.
@rzueger
rzueger merged commit cf6ae27 into develop Jun 17, 2026
2 checks passed
@rzueger
rzueger deleted the signin-code-retry-after branch June 17, 2026 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant