Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No redirection back after success login #914

Open
6 tasks done
david-shiko opened this issue Jun 5, 2024 · 3 comments
Open
6 tasks done

No redirection back after success login #914

david-shiko opened this issue Jun 5, 2024 · 3 comments
Labels
bug This points to a verified bug in the code

Comments

@david-shiko
Copy link

david-shiko commented Jun 5, 2024

Checklist

Description

I explored the source code a bit and it looks like this function freezes:

let credentials = await A0Auth0.webAuth(

So, resolve(credentials); is never called.

I see that this function:

public void webAuth(String scheme, String redirectUri, String state, String nonce, String audience, String scope, String connection, int maxAge, String organization, String invitationUrl, int leeway, boolean ephemeralSession, int safariViewControllerPresentationStyle, ReadableMap additionalParameters, Promise promise) {

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.

Screenshot from 2024-06-05 03-37-52

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

@david-shiko david-shiko added the bug This points to a verified bug in the code label Jun 5, 2024
@sigaits
Copy link

sigaits commented Jul 24, 2024

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

@philippe-architect
Copy link

philippe-architect commented Jul 28, 2024

I have the same issue

@david-shiko did you find a solution?

@philippe-architect
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This points to a verified bug in the code
Projects
None yet
Development

No branches or pull requests

3 participants