Cannot log out from WebBrowser.openAuthSessionAsync in oauth flow for iOS13
See original GitHub issue🐛 Bug Report
Summary of Issue (just a few sentences)
When using WebBrowser.openAuthSessionAsync to implement Oauth flow (Google), Google sign-in state is remembered even after signing out from Google and uninstalling/reinstalling app.
Environment - output of expo diagnostics
& the platform(s) you’re targeting
iOS 13 simulator
Steps to Reproduce
- Configure app to use WebBrowser.openAuthSessionAsync to sign in and out via google oauth.
- Sign in with Google account.
- Confirm on Safari, you are also signed in on google.com
- Sign out of app.
- From Safari, go to google.com and sign out of Google.
- (You can even uninstall / reinstall Expo app here)
- Try signing into the app again.
Expected Behavior vs Actual Behavior
Expected that at this point, you should be prompted to sign into google again. However, the webview opened with WebBrowser.openAuthSessionAsync still somehow seems to have Google sign in cookies, and so it will just let you through.
This is ONLY happening on iOS 13. I have confirmed it does re-prompt on iOS 12 and below.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
AuthSession - Expo Documentation
AuthSession is the easiest way to add web browser based authentication (for example, browser-based OAuth flows) to your app, built on top of...
Read more >Logout from Expo app - Auth0 Community
I'm able to get an access token. Now I'm trying to logout my user. This is my attempt so far : await WebBrowser.openBrowserAsync(...
Read more >Expo: WebBrowser.openAuthSessionAsync and related calls ...
The code is in a private repo so I can't share details of it, but it's a very standard oauth flow, and seeing...
Read more >Auth0 Authorization Code Flow with PKCE using Expo ...
Solution: log out & log back in again. duh. hardly the best UX though. ... Lets talk about OAuth code flows first. Auth...
Read more >Ios - In App With Sfsafariviewcontroller Unable To Load ...
iOS 13 had some challenges and we face very similar problems again with iOS 14. ... will use SFSafariViewController or UIWebView to run...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
you can use the
prompt
param to always show the account picker: https://stackoverflow.com/a/14393492/659988This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem.