Integrations
better-auth-tanstack
In order to use @daveyplate/better-auth-ui
with the @daveyplate/better-auth-tanstack
package, all you need to do is change your <AuthUIProvider>
into an <AuthUIProviderTanstack>
component. It accepts all of the same props and configuration options.
The main difference is the persistClient
prop which is only required if you are using a persistQueryClient
for offline Authentication. This prop will tell the authentication methods to use the /auth/callback
path for all authentication methods that leave the site, which will clear your query cache for you automatically.