auth0-example
auth0-example copied to clipboard
Сallback URL (Redirect URL) for multiple users
Hi guys. Please clarify how to setup callback url properly for multiple users.
In the provided auth0 expo example callback url is generated this way:
const redirectUrl = AuthSession.getRedirectUrl();
And it gives a callback in the format:
https://auth.expo.io/@your-username/your-expo-app-slug
In my case it is:
https://auth.expo.io/@boba111/awesomeapp
And it works fine but only for a single user boba111
.
In case I use react-native without expo I don't have this issue because callback url on the auth0 website is configured this way:
{PRODUCT_BUNDLE_IDENTIFIER}://darmikon.eu.auth0.com/ios/{PRODUCT_BUNDLE_IDENTIFIER}/callback
In my case it looks like this
com.awesomeapp://boba111.eu.auth0.com/ios/com.awesomeapp/callback
So how to setup callback url so that auth0 works for production for any number of users? Is any way to setup kind of wildcard callback url for expo + auth0?
Thanks in advance