db: use shared default schema (no separate-schema bootstrap needed)
This commit is contained in:
+3
-3
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user