initial commit
This commit is contained in:
16
apps/native/lib/auth-client.ts
Normal file
16
apps/native/lib/auth-client.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { expoClient } from "@better-auth/expo/client";
|
||||
import { env } from "@haushaltsApp/env/native";
|
||||
import { createAuthClient } from "better-auth/react";
|
||||
import Constants from "expo-constants";
|
||||
import * as SecureStore from "expo-secure-store";
|
||||
|
||||
export const authClient = createAuthClient({
|
||||
baseURL: env.EXPO_PUBLIC_SERVER_URL,
|
||||
plugins: [
|
||||
expoClient({
|
||||
scheme: Constants.expoConfig?.scheme as string,
|
||||
storagePrefix: Constants.expoConfig?.scheme as string,
|
||||
storage: SecureStore,
|
||||
}),
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user