proyecto26 / react-native-inappbrowser

📱InAppBrowser for React Native (Android & iOS) 🤘
https://www.npmjs.com/package/react-native-inappbrowser-reborn
MIT License
1.29k stars 218 forks source link

Delete or block a session from a previous session #448

Closed zvitek closed 6 months ago

zvitek commented 6 months ago

Hi, is there please an option to delete or not save a session withinopenAuth? I can log into the app under multiple accounts, but when I want to enter another one, the original session exists and I can't log in. I triedcloseAuth but no change.

Thank you

krini commented 6 months ago

I didn't find a solution to get rid of the old session - but you can invalidate it yourself when logging out,

zvitek commented 6 months ago

What exactly do you mean? When I log in, the browser window closes and I can't log out without reopening the browser.

krini commented 6 months ago

yes, that is also what I mean. In webview the token is gone when you reopen it, and this is also the case for openAuth on iOS, however android remembers the data and you need to invalidate your token. Maybe you can invalidate it by calling the logout of your identity provider, or you need to reopen openAuth and invalidate the token in there.

zvitek commented 6 months ago

Ok, I'll try a similar workaround, even though I don't really like it :) It is interesting that such a basic function as clear is missing.

Thank you!