From 8e67f1d4e29f92d491c20bfbba9346a490bdcc63 Mon Sep 17 00:00:00 2001 From: Chris Farhood Date: Sun, 5 Jul 2026 16:25:09 -0400 Subject: [PATCH] db: use shared default schema (no separate-schema bootstrap needed) --- src/auth.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/auth.ts b/src/auth.ts index 72c9872..9c04d83 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -36,11 +36,11 @@ if (process.env.APPLE_CLIENT_ID && process.env.APPLE_CLIENT_SECRET) { }; } -// Better Auth keeps its own tables in a dedicated schema so they sit cleanly -// alongside the MCP app's tables in the same CNPG database. +// Shares the MCP product's CNPG database. Better Auth's tables (user, session, +// account, jwks, oauthApplication, ...) don't collide with the app's `users` +// table, so they coexist in the default schema — same DB, no second instance. const pool = new Pool({ connectionString: required("AUTH_DATABASE_URL"), - options: "-c search_path=betterauth,public", }); export const auth = betterAuth({