Display errors from better auth
Hello. This is my first time trying out Tanstack Form. I have better-auth integration in my Nextjs 15 project. My zod schema works fine and errors show up as expected. But I get an error from better-auth (like "Account already exists"), I don't know how to handle that. How can I show better-auth errors in the form? Thanks.
1 Reply
passive-yellow•2mo ago
Check out this PR, or contains the documentation of what you want to do
https://github.com/TanStack/form/pull/1566
GitHub
Docs: Add error handling section to submission handling docs by LeC...
React
Solid
Vue
Angular (Feedback appreciated)
This PR adds some code snippets to get users started on the three common types of errors:
Sync user errors
Async user errors
Server errors
The u...