kysely + organization setup
Hi, I'm evaluating better-auth and it looks great! Are there any code examples of email + password & organization configured alongside using kyself to define other Tables etc? It feels as though organization and the other entities are under the umbrella of better-auth but I'd like a single layer to interact with DB stuff where I'd consider Organization to be DB
3 Replies
If you're just looking for example for kysley + org setup check the demo. If you want multi-tenant setup at the db level, it's not currently supported.
thanks for the reply, I guess to re-phrase my question. Is there an example of where you have kysely setup defining entities, and then better-auth alongside it leveraging kysely. Trying to get my head around better-auth defining it's own entities where I want to extend the Organization entity/model
better auth just added an org model with fields you can extend as needed, but the Org plugin currently doesn't support inferring additional fields.