Hi,
I’m looking to enable self-service signup within my multi-tenant application using Auth organizations and Universal Login, but I’m having trouble integrating this with the React SDK. From what I’ve gathered, the best way to accomplish this so far is to use two clients:
- Application client - The default client used in the React application, where users are authenticated in the context of an Auth0 Organization (“Business Users” login experience)
- Onboarding client - The is used during the user’s initial signup flow. There is no organization for the user yet, and they are authenticated outside of the context of an Auth0 Organization, then uses the Management API to create one and add the user as a member.
The problem is the onboarding client is handled on the server while the React app requires organization membership to authenticate. Do I create a third application and switch clients in the Auth0Provider?
Any guidance would be greatly appreciated!