feat: add auth

This commit is contained in:
Max Koon
2025-10-12 16:03:28 -04:00
parent 0446893a67
commit b4d13e6a9f
17 changed files with 657 additions and 281 deletions

16
lib/auth-client.ts Normal file
View 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(),
]
});