After clicking on "Sign out", a browser opens with a suggestion to exit GitHub, but why? For example, do I just want to exit the application, not from the GitHub account?

Just in that case, if I do not leave the account, ie. I just close the browser with a suggestion to sign out, and then again I log into the application, I will see the following:
| Events | Profile
| - | - |
|
| 
Although I should see the login screen? This is due to the fact that I did not leave the account on GitHub? It's strange, I think we need to consider this case, can this be fixed?
After clicking on "Sign out", a browser opens with a suggestion to exit GitHub, but why?
If you don't sign out from the browser, when you sign in again GitHub will use your caches credentials. That means you wouldn't be able to sign in as a different user. One idea for fixing this is clearing the cache/cookies in the WebView, but I'm not sure how that can be done.
I know - it is strange and thanks for logging this as I was hoping to keep the discussion going.
So authentication in the app uses the OAuth web flow. User clicks sign in, is directed to GitHub on the browser where they need to type their user name and password and once that completes are redirected back to the app with an access token.
Now the first thing @RolfKoenders and I tried was when the user logs out, we just clear the access token from the persisted store and the user is taken back to the login screen which is perfect. However we noticed that when the user clicks sign in again - they're taken to the browser but because Safari (or Chrome/FIrefox if you're on Android) has the user's authentication information _cached_ so they don't have type their username and password again. This can be annoying if the user is trying to login with different credentials.
So as a workaround, this is what we did when the user clicks Log Out:
Done and try logging in again - they'll have to reenter their username and password again which is what we wantYep just as @andrewda mentioned, if there's a way to clear cache/cookies that would be perfect. We're using React Native Safari View which is nicer than having an embedded WebView in the app _but_ I really don't know if it's possible to clear cookies/cache from within the app. And similarly - we'll need to find a solution for Android as well.
@andrewda @housseindjirdeh thanks for the detailed explanation! A difficult problem, but we need to look for solutions.
Oh, the unpleasant thing I have now is: I sign out the application, got out also from the profile in the browser on GitHub, and when I try to go back to the application, it fails :(
At the same time, there was no logout from the application, i.e. the event screen is displayed, not the login screen.
I had to reinstall the application, it's annoying. However, in the emulator, there is no fall, everything works. Is it only in Android, or is it also in the iOS app?
ping @housseindjirdeh
Hmmmmmmm interesting. I've never noticed this in iOS but I actually haven't tried signing out on Android yet :O
Will give it a shot tomorrow in the emulator and let you know. _Definitely_ something we ned to correct if it's reproducible. Apologies you had to end up uninstalling the app and reinstalling as a workaround 馃槥
Just in the emulator there is no such :confused:
It is necessary to check on the real device, maybe this is just me such a problem.
Oh really eh? Okay unfortunately I don't have the Android device I was using earlier today but should have it for testing in a few days. Will run through the sign out flow then but in the meantime - will appreciate if anyone with an Android device can try and reproduce this.
@housseindjirdeh I can try it maybe on my friends nexus 5x tomorrow to see what happens. Will let you know!
Assigning this to me if no one objects. I think that #323 could help a lot here :)
This is fixed by #323
Most helpful comment
@andrewda @housseindjirdeh thanks for the detailed explanation! A difficult problem, but we need to look for solutions.