Branchwell

AI Resource Pro / website · airesourcepro.com / src / lib / auth-client.ts

Raw 309 B on 5069836c1e4c4e369ebe86b13dc7d299c5bed8c0
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});