MicProtocol / apps /admin /src /lib /auth-client.ts
Benaah's picture
Upload folder using huggingface_hub
fecff63 verified
Raw History Blame Contribute Delete
279 Bytes
import { createAuthClient } from "better-auth/react";
export const authClient = createAuthClient({
baseURL: process.env.NEXT_PUBLIC_API_URL ?? "http://localhost:4000",
fetchOptions: { credentials: "include" },
});
export const { signIn, signOut, useSession } = authClient;