docs: Better const name for auth client usage (#47)

This commit is contained in:
Pablo Aller
2024-09-30 17:15:05 +02:00
committed by GitHub
parent ef63bb1573
commit ca00a358ae

View File

@@ -322,7 +322,7 @@ If you're using a differnt base path other than `/api/auth` make sure to pass th
<Tab value="vanilla">
```ts title="lib/auth-client.ts"
import { createAuthClient } from "better-auth/client"
export const client = createAuthClient({
export const authClient = createAuthClient({
baseURL: "http://localhost:3000" // the base url of your auth server // [!code highlight]
})
```