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

**URL:** <https://community.auth0.com/t/prevent-duplicate-open-with-modal-when-authenticating-via-google-sign-in/132566>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [April 22, 2024, 8:45pm UTC](https://community.auth0.com/t/prevent-duplicate-open-with-modal-when-authenticating-via-google-sign-in/132566 "2024-04-22T20:45:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![orel.a](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/orel.a/32/55131_2.png) [@orel.a](https://community.auth0.com/u/orel.a)\
**Post date:** [April 22, 2024, 8:45pm UTC](https://community.auth0.com/t/prevent-duplicate-open-with-modal-when-authenticating-via-google-sign-in/132566/1 "2024-04-22T20:45:33Z")

</div>

### 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\>](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

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [April 22, 2024, 9:02pm UTC](https://community.auth0.com/t/prevent-duplicate-open-with-modal-when-authenticating-via-google-sign-in/132566/2 "2024-04-22T21:02:58Z")

</div>

Hey there @orel.a welcome to the community!

Do you experience this issue if you’re to upgrade to the latest version of [react-native-auth0](https://github.com/auth0/react-native-auth0/releases)? I do remember this issue cropping up in the past, but I believe it has been resolved in subsequent releases.

---

<div class="post-metadata">

**Author:** ![orel.a](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/orel.a/32/55131_2.png) [@orel.a](https://community.auth0.com/u/orel.a)\
**Post date:** [April 30, 2024, 7:34am UTC](https://community.auth0.com/t/prevent-duplicate-open-with-modal-when-authenticating-via-google-sign-in/132566/4 "2024-04-30T07:34:25Z")

</div>

> [@ty.frith](#):
>
> Do you experience this issue if you’re to upgrade to the latest version of [react-native-auth0](https://github.com/auth0/react-native-auth0/releases)? I do remember this issue cropping up in the past, but I believe it has been resolved in subsequent releases.

Yes i do experience this issue even after upgrading to the latest version that is capable with react native v0.63.5

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 14, 2024, 7:35am UTC](https://community.auth0.com/t/prevent-duplicate-open-with-modal-when-authenticating-via-google-sign-in/132566/5 "2024-05-14T07:35:02Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
