okta / okta-react-native

OIDC enablement for React Native applications
https://github.com/okta/okta-react-native
Other
59 stars 39 forks source link

Refactor OktaSdkBridgeModule for async operations: UI thread blocking #428

Open anujsachan1990 opened 3 weeks ago

anujsachan1990 commented 3 weeks ago

Refactor OktaSdkBridgeModule for improved asynchronous operations

This refactor aims to improve performance, responsiveness, and reliability of the Okta SDK Bridge module while maintaining compatibility with existing React Native integration.

Addresses issue where certain operations (createConfig, signIn, authenticate, etc.) could potentially block the UI thread on some devices, leading to unresponsive app behavior. By moving these operations to background threads, we ensure a smoother user experience across all devices, particularly those with limited resources or slower network connections.