auth-client.ts (275.00 Bytes)
import { apiKeyClient, usernameClient } from "better-auth/client/plugins";
import { createAuthClient } from "better-auth/react";

export const authClient = createAuthClient({
  baseURL: import.meta.env.VITE_BETTER_AUTH_URL,
  plugins: [usernameClient(), apiKeyClient()],
});