Next.js vs TanStack Start Integrations
why is it recommended to use the api object when integrating better-auth with next.js?
RSC and Server actions
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 as invocable as a function. Including plugins endpoints.
while when it comes to tanstack start, it is recommended to use the client SDK?
TanStack Start integration:
Usage tips
We recommend using the client SDK or authClient to handle authentication, rather than server actions with auth.api.
RSC and Server actions
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 as invocable as a function. Including plugins endpoints.
while when it comes to tanstack start, it is recommended to use the client SDK?
TanStack Start integration:
Usage tips
We recommend using the client SDK or authClient to handle authentication, rather than server actions with auth.api.