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({