react-native-auth0 icon indicating copy to clipboard operation
react-native-auth0 copied to clipboard

Support for Locking WebView Orientation to Portrait

Open deepaaravind-myob opened this issue 1 year ago • 0 comments

Checklist

  • [X] I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
  • [X] I have looked into the API documentation and have not found a suitable solution or answer.
  • [X] I have searched the issues and have not found a suitable solution or answer.
  • [X] I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • [X] I agree to the terms within the Auth0 Code of Conduct.

Describe the problem you'd like to have solved

In our React Native application, we use the Auth0 SDK to handle user authentication via WebAuth. However, we’ve encountered an issue where the WebView used for authentication rotates to landscape mode when the device orientation is changed. For our application, it is required to lock the orientation to portrait mode during the authentication process to ensure a consistent user experience.

Describe the ideal solution

  • Provide configuration options within the SDK to allow developers to specify the desired orientation (e.g., portrait, landscape, sensor) for WebAuth activities
  • Update the internal activities used by the Auth0 SDK for WebAuth to respect the orientation configuration settings provided by developers.

Alternatives and current workarounds

There is no workaround that we could implement for this scenario.

Additional context

No response

deepaaravind-myob avatar Jul 25 '24 04:07 deepaaravind-myob