mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-06 12:27:44 +00:00
docs: typo on the installation tutorial (#144)
This commit is contained in:
@@ -334,14 +334,14 @@ Better Auth supports any backend framework with standard Request and Response ob
|
||||
<Step>
|
||||
### Create Client Instance
|
||||
|
||||
The client-side library helps you interact with the auth server. Better Auth comes with a client for all the popular web frameworks inlcuding for vanilla javascript.
|
||||
The client-side library helps you interact with the auth server. Better Auth comes with a client for all the popular web frameworks including for vanilla javascript.
|
||||
|
||||
1. Import `createAuthClient` from the package for your framework (e.g., "better-auth/react" for React).
|
||||
2. Call the function to create your client.
|
||||
3. Pass the base url of your auth server. (If the auth server is running on the same domain as your client, you can skip this step.)
|
||||
|
||||
<Callout type="info">
|
||||
If you're using a differnt base path other than `/api/auth` make sure to pass the whole url inlcuding the path. (e.g. `http://localhost:3000/custom-path/auth`)
|
||||
If you're using a different base path other than `/api/auth` make sure to pass the whole url including the path. (e.g. `http://localhost:3000/custom-path/auth`)
|
||||
</Callout>
|
||||
|
||||
<Tabs items={["react", "vue", "svelte", "solid",
|
||||
|
||||
Reference in New Issue
Block a user