Hello.
We need to support multiple Auth0 tenants for passwordless authentication in the react-native app.
Each tenant has a unique domain and client id for an application setup.
We have a server that checks by email what Auth0 tenant our user is registered on and sends the corresponding clientId and domain for further authentication.
I’m using the ‘react-native-auth0’ package. In the integration setup, I see that it requires to setup AndroidManifest.xml and MainActivity files with ‘android: host’ which is basically the Auth0 tenant domain.
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="YOUR_AUTH0_DOMAIN"
android:pathPrefix="/android/${applicationId}/callback"
android:scheme="${applicationId}" />
</intent-filter>
This means the domain will be hardcoded, right?
Is there a way to have a dynamic setup for linking that will support different Auth0 domains in parameters?
Maybe there is another way to set up multiple Auth0 domains support in the app?