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

Prevent Duplicate "Open With" Modal When Authenticating via Google Sign-In #884

Open
6 tasks done
orel-asper opened this issue Apr 7, 2024 · 2 comments
Open
6 tasks done
Labels
bug This points to a verified bug in the code

Comments

@orel-asper
Copy link

Checklist

Description

We observe an unexpected behavior upon authenticating through Google sign-in. Upon completing the sign-in process successfully, the system presents the user with an "Open With" modal featuring our app twice. How do we eliminate the redundancy and display only a single instance? Thank you!

React Native version 0.63.5
react-native-auth0: 2.11.0-2.15.0

happens on Android 14

Reproduction

In order to reproduce the issue, here are the steps to follow:

Begin navigating inside the application, triggering the need to authenticate the user.
Attempt to authenticate using the webAuth.authorize(...) method along with valid credentials.
At this point, the user will be redirected to Chrome for initiating the authentication process.
Following a successful authentication attempt, the user encounters an "Open With" dialog box listing the application twice.
A screenshot has been included in the GitHub repository showcasing this problem: <https://github.com/auth0/react-native-auth0/assets/67417080/d2b2f421-9167-428c-a688-c89cad691c55>

The main concern lies in preventing the appearance of the duplicated "Open With" modal, restricting it to just a single occurrence. Thanks for considering this issue!

Additional context

No response

react-native-auth0 version

2.11.0

React Native version

0.63.5

Expo version

No response

Platform

Android

Platform version(s)

14

@orel-asper orel-asper added the bug This points to a verified bug in the code label Apr 7, 2024
@bijudhungel1177
Copy link

@orel-asper did you find any solution ?

@poovamraj
Copy link
Contributor

@orel-asper @bijudhungel1177 This issue occurred in the older version of our SDK using Expo where the intent that was used was same as one used by Expo. You can see our migration guide to v3 explaining how this can be fixed - https://github.com/auth0/react-native-auth0/blob/master/MIGRATION_GUIDE.md#upgrading-from-v2---v3

Can you try this and let us know your feedback?

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