Skip to content
This repository has been archived by the owner on Feb 21, 2020. It is now read-only.

Сallback URL (Redirect URL) for multiple users #27

Open
Darmikon opened this issue Apr 20, 2019 · 0 comments
Open

Сallback URL (Redirect URL) for multiple users #27

Darmikon opened this issue Apr 20, 2019 · 0 comments

Comments

@Darmikon
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant