Branchwell

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

Raw 309 B on 6c7ce85c3441baadd17890ab9cc9bf8ed5112901
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});