docs: fix expo repeated section (#1175)

"Initialize Better Auth Client" is repeating twice
This commit is contained in:
Sanatan
2025-01-10 23:45:14 +05:30
committed by GitHub
parent 7083de62c8
commit f0a479a163

View File

@@ -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