mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-24 08:01:56 -05:00
docs: Better const name for auth client usage (#47)
This commit is contained in:
@@ -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]
|
||||
})
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user