feat: add auth
This commit is contained in:
16
lib/auth-client.ts
Normal file
16
lib/auth-client.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
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: "http://localhost:8081",
|
||||
plugins: [
|
||||
expoClient({
|
||||
scheme: "money",
|
||||
storagePrefix: "money",
|
||||
storage: SecureStore,
|
||||
}),
|
||||
genericOAuthClient(),
|
||||
]
|
||||
});
|
||||
Reference in New Issue
Block a user