Closed desusai7 closed 1 month ago
Hey, guys! @desusai7 @poovamraj Great feature, thanks for working on it!
We are using expo, do you guys know how we could use it? Is it available through some config plugin property?
Hi @MAlvesKitestring,
We've released this just now as part of version 4.0.0-beta.0, yes, we are supporting expo as well, please check out more on it here
Added support for domain switching
Updated the
hasValidAuth0Instance
method in bothAndroid
&iOS
modules to check if the existing auth0 instanceclientId
&domain
are same as theclientId
&domain
passed from the React Native layer and if they are different we are creating new instance ofAuth0
, this would enable customers to switch between different domains quickly.To support multiple domains in an Android app, developers need to add intent filters to their
AndroidManifest.xml
file. The following code snippet demonstrates how to do this. By incorporating these changes, the defaultIntentFilter
provided by the library is overridden, eliminating the need to specifymanifestPlaceHolders
in the app's build.gradle file. Simply add a<data>
element within the<intent-filter>
ofcom.auth0.android.provider.RedirectActivity
for each domain you wish to accommodate.References
747
911
Testing
Since these changes are made on the bridge layers of both Android and iOS platforms, we do not have test setup there, so updated the sample app to use multiple domains in two different screens by default and tested it on both Android and iOS platforms.
Checklist