docs: update imports in hono/client

This commit is contained in:
Adarsh Madrecha
2025-05-10 19:46:16 +05:30
committed by GitHub
parent fdf3efb3c9
commit 8fcc758fe9

View File

@@ -155,7 +155,7 @@ export const auth = createAuth({
When using the Hono client (`@hono/client`) to make requests to your Better Auth-protected endpoints, you need to configure it to send credentials (cookies) with cross-origin requests.
```ts title="api.ts"
import { hc } from "@hono/client";
import { hc } from "hono/client";
import type { AppType } from "./server"; // Your Hono app type
const client = hc<AppType>("http://localhost:8787/", {