auth0 / react-native-auth0

React Native toolkit for Auth0 API
https://auth0.com
MIT License
494 stars 209 forks source link

Auth0 is stuck when the useSFSafariViewController is active on iOS #973

Open msKevin190 opened 1 month ago

msKevin190 commented 1 month ago

Checklist

Description

Issue: After updating React Native from version 0.71.x to 0.73.4, the login process in my application using Auth0 gets stuck and fails to proceed.

Details:

The app was functioning properly before the update. After upgrading React Native, the login screen no longer transitions after credentials are submitted. No specific error message is displayed, and the process seems to hang indefinitely. Any assistance or guidance to resolve this issue would be appreciated.

the code is


auth0.webAuth
      .authorize(
        {
          audience: 'xxxxxxxxxx',
          scope: 'openid profile email offline_access',
          additionalParameters: { prompt: 'login' },
        },
        { ephemeralSession: false, useSFSafariViewController: {
            presentationStyle: 0,  
        } },
      )

Reproduction

1) Activate the useSFSafariViewController 2) try init session 3) that's it

Additional context

No response

react-native-auth0 version

3.2.1

React Native version

0.74.3

Expo version

No response

Platform

iOS

Platform version(s)

17.x