Multi domain Auth

We have a main NextJS app where better auth works like a charm, now we have another React micro frontend (can be hosted in multiple domains) which we want to communicate with the main app api with auth. Please anyone suggest the best approach to do so.
1 Reply
Ping
Ping5mo ago
This is possible to do so, just make sure to have some way for your main BetterAuth backend instance to know each domain so that you can add them to the trustedOrigin list in the config.

Did you find this page helpful?