Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve Auth0 Callback URL error in React Native

I'm using Auth0 with React Native. I'm following the instructions here. I'm running the following code:

auth0.webAuth.authorize({
  scope: 'openid email',
  audience: '{MY_DOMAIN}'
})

where {YOUR_AUTH0_DOMAIN} is replaced with my actual Auth0 domain.

I've added {YOUR_BUNDLE_IDENTIFIER}://${YOUR_AUTH0_DOMAIN}/ios/{YOUR_BUNDLE_IDENTIFIER}/callback, where I've replaced {YOUR_BUNDLE_IDENTIFIER} and {YOUR_AUTH0_DOMAIN} with the corresponding values, to my list of "Allowed Callback URLs" in my Application Settings on auth0.com.

However, when I call the auth0.webAuth.authorize() method, it redirects me to the following screen:

enter image description here

Does anyone know how to approach this?

like image 638
gkeenley Avatar asked Sep 07 '26 05:09

gkeenley


1 Answers

If you go into the Auth0 management site you can view the logs of your failed authentication. Then its usually just a matter of adding whatever url you find in the logs to the "Allowed Callback URLs" field of the auth0 application.

Auth0 logs screenshot

Auth0 log screenshot

like image 155
JumpingJezza Avatar answered Sep 09 '26 23:09

JumpingJezza



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!