mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-29 10:26:49 -05:00
docs: fix expo repeated section (#1175)
"Initialize Better Auth Client" is repeating twice
This commit is contained in:
@@ -111,22 +111,6 @@ Expo is a popular framework for building cross-platform apps with React Native.
|
||||
```
|
||||
</Step>
|
||||
|
||||
<Step>
|
||||
## Initialize Better Auth Client
|
||||
|
||||
To initialize Better Auth in your Expo app, you need to call `createAuthClient` with the base url of your Better Auth backend. Make sure to import the client from `/react`.
|
||||
|
||||
```ts title="src/auth-client.ts"
|
||||
import { createAuthClient } from "better-auth/react";
|
||||
|
||||
export const authClient = createAuthClient({
|
||||
baseURL: "http://localhost:8081", /* base url of your Better Auth backend. */
|
||||
});
|
||||
```
|
||||
<Callout>
|
||||
Be sure to include the full URL, including the path, if you've changed the default path from `/api/auth`.
|
||||
</Callout>
|
||||
</Step>
|
||||
<Step>
|
||||
## Configure Metro Bundler
|
||||
|
||||
|
||||
Reference in New Issue
Block a user