thommeo
BABetter Auth
•Created by Amit on 5/9/2025 in #help
Better Auth + Multi-Tenant (Separate DBs per tenant)
In our app, we have the same db-per-tenant approach. We don't use BetterAuth yet though 🙂 But I assume you should think in terms of providing constant "db adapter" to betterauth, and that adapter must be your own, which would have a pool of connections for each db (that's many connection to every db), which would route the queries to relevant db connection internally depending on its own conditions. We have that in the app now, just not with betterauth yet 🙂
7 replies