mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-29 18:36:34 -05:00
docs(fix): added export to authClient definition - expo (#1111)
This commit is contained in:
@@ -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. */
|
||||
});
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user