8 lines
283 B
TypeScript
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()],
|
|
});
|