Exposing FetchOptions Type with Better-Auth?
It seems that if I want the type definition of
FetchOptions
. I need to install @better-fetch/fetch
Use Case, using Tanstack Query with better-auth
. Below is my mutationFn to be passed to Tanstack Query.
1 Reply
Actually...have no idea why I'm creating a wrapper function...and just pass
authClient.signUp.email
as is to mutationFn and everything will be inferred...