No redirection back after success login
david-shiko opened this issue · 3 comments
Checklist
- The issue can be reproduced in the react-native-auth0 sample app (or N/A).
- I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
- I have looked into the API documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
Description
I explored the source code a bit and it looks like this function freezes:
react-native-auth0/src/webauth/agent.ts
Line 56 in e177149
So, resolve(credentials); is never called.
I see that this function:
was working correctly, but the execution does not return back to the JavaScript code.
Please, check my point.
Reproduction
Most basic case - just try to login via google and use authorize
method.
Anyway I got the infinitr loading after pressing any login button.
Additional context
No response
react-native-auth0 version
"react-native-auth0": "^3.1.0",
React Native version
"react-native": "0.74.1",
Expo version
No response
Platform
Android
Platform version(s)
Linux david-comp 6.5.0-35-generic #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 7 09:00:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
I'm having the same problem using authorize() from the useAuth0 hook. According to the event logs on the dashboard, the authentication is successful using either social media or user/pwd but the universal login never returns to the app on Android. No issues on iOS.
Expo: 51
react-native-auth0: 3.2.1
I have the same issue
@david-shiko did you find a solution?
Fixed my issue, turns out I was using https://
in my domain url in app.json
and when initialising the Auth0Provider
but not including in my allowed redirect urls. Removing the https://
fixed it.