Add @sofa/native Expo React Native app (#7)

This commit is contained in:
2026-03-12 19:39:54 -04:00
committed by GitHub
parent a326c968b7
commit 83839a0cd7
130 changed files with 9015 additions and 971 deletions
+2 -1
View File
@@ -13,7 +13,8 @@
"check-types": "tsc --noEmit"
},
"dependencies": {
"@better-auth/drizzle-adapter": "1.5.4",
"@better-auth/drizzle-adapter": "1.5.5",
"@better-auth/expo": "catalog:",
"@sofa/core": "workspace:*",
"@sofa/db": "workspace:*",
"@sofa/logger": "workspace:*",
+3 -3
View File
@@ -1,4 +1,5 @@
import { drizzleAdapter } from "@better-auth/drizzle-adapter";
import { expo } from "@better-auth/expo";
import {
getUserCount,
isRegistrationOpen,
@@ -18,6 +19,7 @@ import {
const authLog = createLogger("auth");
export const auth = betterAuth({
trustedOrigins: ["sofa://"],
logger: {
// Suppress unset secret/low entropy warnings during build
disabled: process.env.NEXT_PHASE === "phase-production-build",
@@ -69,9 +71,7 @@ export const auth = betterAuth({
}),
]
: []),
// NOTE: nextCookies() removed — Better Auth works with standard
// Request/Response natively on Hono. The web app proxies auth
// requests to the API server.
expo(),
],
advanced: {
database: {