How to handle multi-tenant

@bekacru @Ping I am currently running better-auth at domain.com this is the place where users can create their own example.domain.com and manage their domain, so I authenticate them (email/pass, google and github) and I use better-auth for that (so my BASE_URL of better auth is: domain.com). so I need to authenticate the visitors of my user's site, separately and store them in separate collection (like subscribers). so example1.domain.com subscriber is not the same as example2.domain.com subscriber and they will be stored in subscriber collection. so the default user collection will be for domain.com owners and the subscriber collection will be for all subscribers how can i achieve this with better-auth 🙏
Solution:
i ended up creating another instance and it worked not sure it is the best way.
Jump to solution
1 Reply
Solution
FikirYilkal
FikirYilkal3mo ago
i ended up creating another instance and it worked not sure it is the best way.

Did you find this page helpful?