Problem With Auth0 Integration

I’m trying to integrate Auth0 into my login process by following the example here https://github.com/expo/auth0-example . Unfortunately, I am having some problems. First, the auth0 documentation gives a different redirect URL than the example. The documentation is here: https://auth0.com/docs/client-auth/mobile-desktop#call-the-authorization-url, and provides a customized redirect address for each auth0 user. If there is a requirement to use the “exp://e8-j5w.charlesvinette.exponent-auth0.exp.direct/+/redirect” based URL (altered to my own exp:// address) as shown in the example, then what should the redirect URL be in production? It doesn’t seem sensible that it would point to my development environment.

Second, when I do actually get a page open using Expo.WebBrowser.openBrowserAsync I get a webpage that only shows “ok” in the upper right corner of the page. This is similar to the error mentioned on this page https://auth0.com/forum/t/auth0-lock-with-ionic-2-ok-screen/3379.

Looking into it some more, I think this is correct behavior. The OK seems to imply that I am already logged in with facebook. However, I have so far been unable to get Linking.addEventListener working in order to respond to the callback url.

Your redirect url in development and production does indeed change. I recommend checking out Constants.linkingUri. Sorry there are very few docs about deep linking at this point, we’re working on improving that for next release.