mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-08-29 00:25:38 -04:00
Add @sofa/native Expo React Native app (#7)
This commit is contained in:
@@ -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:*",
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user