Better Auth with tRPC

is it good to wrap all better auth features into trpc? i mean like, i don't want to call authClient.signin directly, but i want to call it through trpc like const signInMutation = trpc.auth.signIn. so that all API calls are the same. because right now it's just auth it's a shame not to use trpc.
1 Reply
Blank
Blank6d ago
we use better auth with trpc, we just keep the calls seprated, there is no reason to convert the authclient into trpc endpoints, they work fine either way it would be hard to even support trpc as better auth is built upon better-call

Did you find this page helpful?