React Hook Form + Zod in a localized magic-link form #13818
Unanswered
visoar
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I maintain UllrAI SaaS Starter, an MIT Next.js 16 project. One small integration that may be useful here is its localized magic-link login/signup form.
The form uses
useFormwithzodResolverand a shared email schema. It clears previous validation feedback before a request, renders controlled translated feedback, and navigates to the sent-link screen only after the auth request succeeds. Login and signup reuse the same form with different callbacks and copy.Implementation and checks:
Email delivery requires your own service configuration. Feedback on the React Hook Form/Zod integration and request-feedback handling would be welcome.
Disclosure: this post was drafted with AI assistance and submitted with the project maintainer's authorization.
All reactions