db: use shared default schema (no separate-schema bootstrap needed)
build / test (push) Successful in 13s
build / build (push) Successful in 5s

This commit is contained in:
2026-07-05 16:25:09 -04:00
parent f88687c182
commit 8e67f1d4e2
+3 -3
View File
@@ -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({