opengovsg / starter-kit

A technical kit to quickly build new products
https://start.open.gov.sg
MIT License
36 stars 6 forks source link

fix: reset timer on resend otp, replace rooks with usehooks-ts #182

Closed karrui closed 1 year ago

karrui commented 1 year ago

Currently users are able to resend OTP infinite times. This PR blocks the frontend from resending OTP for 60 seconds correctly.

Also replaces rooks package with usehooks-ts package, since the hooks in usehooks-ts has better support for SSR

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
starter-kit ✅ Ready (Inspect) Visit Preview Aug 8, 2023 7:44am