docs(fix): added export to authClient definition - expo (#1111)

This commit is contained in:
Multinite
2025-01-04 03:42:07 +10:00
committed by GitHub
parent a06749f8d2
commit 19527cd055

View File

@@ -71,7 +71,7 @@ Expo is a popular framework for building cross-platform apps with React Native.
import { expoClient } from "@better-auth/expo/client";
import * as SecureStore from "expo-secure-store";
const authClient = createAuthClient({
export const authClient = createAuthClient({
baseURL: "http://localhost:8081", /* base url of your Better Auth backend. */
plugins: [
expoClient({
@@ -119,7 +119,7 @@ Expo is a popular framework for building cross-platform apps with React Native.
```ts title="src/auth-client.ts"
import { createAuthClient } from "better-auth/react";
const authClient = createAuthClient({
export const authClient = createAuthClient({
baseURL: "http://localhost:8081", /* base url of your Better Auth backend. */
});
```