Resubmitting this thread as never recieved an aswer:
Migrated to 3.0 and while IOS works just fine, android fails to complete the authorization process and provide an accessToken
The readme states that the Intent Filters are no longer required for the redirect but if I remove them, I get an error after submiting credentials saying " The site can’t be reached’.
Adding the intent filters solves this error, but then the auth0.webAuth.authorize method still fails to trigger the callback. In otherwords, .authorize() fails to completely resolve, and my .then() fail to print anything afterwards.
I have recreated the issue using the sample project. Has anyone encountered this issue and resolved it?
Yes,
I migrated to react-native-auth-0 version 3.0. Before that, the android login was failing due to an issue with react native navigation preventing the callback from occuring properly.
I have re-created the exact same issue with the example project. The callback works in the sense that the callback re-opens the application after completing the sign in, however, the callback function never completes and pulls the credentials from the redirect.
In other words, while the redirect occurs, neither ‘authorization completed’, or ‘authorization error’, is ever printed to console, so credentials are never retrieved and displayed in the alert.
Specifically, the callback URL changes? Also, can you confirm if you are using Expo in your project? It looks like part of the migration includes some support for legacy callback URLs if you are not using Expo (Please see the above link for more info).
Yes, I had gone through the migration guide, and changed the callback url as required, after updating the url. Nor am not using expo in my project.
To confirm, I just re cloned the auth0-react-native-sample project again and configured according to the readme from scratch and still no luck with fresh start…After logging in, still getting “This site can’t be reached” in android…ios works fine.