question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

  1. Configure app to use WebBrowser.openAuthSessionAsync to sign in and out via google oauth.
  2. Sign in with Google account.
  3. Confirm on Safari, you are also signed in on google.com
  4. Sign out of app.
  5. From Safari, go to google.com and sign out of Google.
  6. (You can even uninstall / reinstall Expo app here)
  7. 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:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
brentvatnecommented, Jun 22, 2020

you can use the prompt param to always show the account picker: https://stackoverflow.com/a/14393492/659988

0reactions
github-actions[bot]commented, Feb 17, 2022

This 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found