Defining non https url on "allowed callbacks"

hey @guy1812, I think I figured it out. It was really tricky reading the documentation, but I did just get it to work without the popup on a sideloaded APK for Android. I still need to push OTA to test iOS but here’s what I did…

https://auth0.com/docs/quickstart/native/react-native#configure-callback-urls

If your app.json contains the scheme “myapp” and bundle for the apps are “com.myname.myapp” then the URLs I entered in Auth0 were the following:

myapp://xyz.us.auth0.com/android/com.myname.myapp/callback,
myapp://xyz.us.auth0.com/ios/com.myname.myapp/callback,

Then in Auth0 Callback URLs I added those.

Now for running in Expo, I still use the proxy and AuthSession.makeRedirectUri (for ease of developer use) and receive the popup. But if I’m deploying to a remote channel such as production, I set the proxy to false and force the redirectUri to be one of the above URLs based on platform. I’m not sure if that platform specific URL is exactly necessary, but at first test it worked.

Hope this helps, let me know if you need more details.

2 Likes