Files
zopu-code/packages/auth/src/web/auth-client.ts
T

8 lines
283 B
TypeScript

import { convexClient } from "@convex-dev/better-auth/client/plugins";
import { createAuthClient } from "better-auth/react";
export const authClient = createAuthClient({
baseURL: typeof window === "undefined" ? undefined : window.location.origin,
plugins: [convexClient()],
});