Branchwell

Become a Pro / website · becomeapro.ai / src / lib / auth-client.ts

Raw 309 B on b7854f3692d64213a2fce644d0b5101d3e345b03
1"use client";
2
3import { createAuthClient } from "better-auth/react";
4import { inferAdditionalFields } from "better-auth/client/plugins";
5import type { resourceAuth } from "@/lib/d1-auth";
6
7export const authClient = createAuthClient({
8 plugins: [inferAdditionalFields<ReturnType<typeof resourceAuth>>()],
9});