Auth0 Home Blog Docs

Calling authentication API from Android React native

lock
react-native
redirecturi

#1

Hello,

I’m using the react-native SDK platform with webview lock screen. So the lock screen from auth0 it’s used.

The problem I’m facing it’s with the redirect_uri, I added the correct one for both platforms, iOS and Android into the application Allowed Callback URLs.

ios: com.okapi.paul.insider-app://insider.auth0.com/ios/com.okapi.paul.insider-app/callback
android: com.insider_app://insider.auth0.com/android/com.insider_app/callback

On iOS works ok, but for some reason when I try to login with Android, lock screen says that the redirect_uri wasn’t setup correctly, even if the correct url is shown.

Checkout the screenshot.

I’m doing something wrong? Or there is a problem somewhere else?


#2

UPDATE:

Auth0 callbacks does not support underscores ( _ ) in url, so instead of com.insider_app should be com.insiderapp.