Files
money/lib/auth-client.ts
2025-10-20 10:27:57 -04:00

17 lines
528 B
TypeScript

import { createAuthClient } from "better-auth/react";
import { genericOAuthClient } from "better-auth/client/plugins";
import { expoClient } from "@better-auth/expo/client";
import * as SecureStore from "expo-secure-store";
export const authClient = createAuthClient({
baseURL: process.env.NODE_ENV == 'production' ? 'https://money-api.koon.us' : "http://localhost:3000",
plugins: [
expoClient({
scheme: "money",
storagePrefix: "money",
storage: SecureStore,
}),
genericOAuthClient(),
]
});