better-auth/apps/web/modules/shared/lib/api-client.ts
 Илья Шалонин 8538ab969a first
2025-10-29 13:43:43 +05:00

9 lines
223 B
TypeScript

import type { AppRouter } from "@repo/api";
import { getBaseUrl } from "@repo/utils";
import { hc } from "hono/client";
export const apiClient = hc<AppRouter>(getBaseUrl(), {
init: {
credentials: "include",
},
}).api;