better-auth/apps/web/modules/shared/lib/api-client.ts

10 lines
223 B
TypeScript
Raw Permalink Normal View History

2025-10-29 13:43:43 +05:00
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;