FormidableLabs / react-native-app-auth

React native bridge for AppAuth - an SDK for communicating with OAuth2 providers
https://commerce.nearform.com/open-source/react-native-app-auth
MIT License
2.04k stars 441 forks source link

Login redirect to app is broken after browser cache is cleared #960

Closed mihaf70 closed 6 months ago

mihaf70 commented 7 months ago

Issue

After cleaning browser (chrome) cache and opening login instance regularly within app, in app browser is not opened inside app but as a separate browser. You can see it on the following screenshots. Because of that, when I'm redirected to the app after login process, the only I can see is a grey screen. After app relaunch I'm logged in so it's only an UI defect, login logic is working.

Browser cache cleared (incorrect behaviour): Screenshot_20240417-123747

Correct behaviour: Screenshot_20240417-123757

Issue was reproduced on Google Pixel 7 Pro (Android 15 Beta) both on debug and release app mode.

Here's the screen recording: https://github.com/FormidableLabs/react-native-app-auth/assets/72543203/da8412ae-b1f6-455f-aba6-5a03d9bd88dd


Environment

faizplus commented 6 months ago

This seems to be coding error and is unrelated to this open source library and falls under general development help. Try to debug the response after login and check how you are managing your internal state. Closing this issue but feel free to reopen if you find issue with this package.