Server-side vs client-side validation
https://tanstack.com/form/latest/docs/framework/react/guides/ssr
In better auth docs, they recommend using auth client with Tanstack Start:
We recommend using the client SDK or authClient to handle authentication, rather than server actions with auth.api
while with Next.js, they recommend using server actions and RSC:
The api object exported from the auth instance contains all the actions that you can perform on the server. Every endpoint made inside Better Auth is a invocable as a function. Including plugins endpoints.
How should I go with it?
