Skip to content

fix: forgot-password axios/SMTP timeout race - #18

Merged
habiibullahm merged 1 commit into
mainfrom
bugfix/forgot-password-client-timeout-race
Aug 5, 2026
Merged

habiibullahm merged 1 commit into
mainfrom
bugfix/forgot-password-client-timeout-race

Conversation

@habiibullahm

Copy link
Copy Markdown
Owner

Summary

  • Prod returns 503 in ~10s while the UI axios default is 10s, so users see `timeout of 10000ms exceeded`
  • Forgot-password request timeout → 25s; SMTP timeouts → 5s
  • Fall back to Resend when SMTP fails (set `RESEND_API_KEY` on Render for real delivery)

Test plan

  • Redeploy API and UI on Render (UI is static — must rebuild)
  • Forgot password: toast should show API message (or success), not `timeout of 10000ms exceeded`
  • Optional: set `RESEND_API_KEY` and confirm inbox email

Raise forgot-password client timeout to 25s, cut SMTP timeouts to 5s, and fall back to Resend when SMTP fails so Render returns a real API error instead of a client timeout.
@habiibullahm
habiibullahm merged commit eec3de5 into main Aug 5, 2026
@habiibullahm
habiibullahm deleted the bugfix/forgot-password-client-timeout-race branch August 5, 2026 11:08
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