Better Auth + TanStack Query: Full Caching, Zero Boilerplate
Better Auth methods return { data, error } and never throw; TanStack Query decides failure by what throws. One option bridges them — then you delete every loading state and toast.error scattered across your components.