Logging in with google prevents the user from logging in again with a different account - iOS

I use google authentication to log in using firebase. The authentication process works well, and I can create credentials and authenticate.

My problem is that after exiting firebase and google, the user tries to log in again using Google. At this point, Google will automatically authenticate using the account you used previously. I tried both exit and disconnect options from google api, but the result is the same.

I partially found that my problem, here are the steps to reproduce:

  • Not signed with google in app but not included in safari on device with google account
  • Sign in with your google account
  • Now I enter the AND application in safari as well as with the same account
  • When I exit the application, safari is still authenticated with this user.
  • I can not see the account selection in the application until I withdraw the google account from safari on the device

This problem does not appear if safari (point 1) is already logged in with a different google account. In this case, I will always have a choice between two accounts in the application.

Is there a way to exit the application and always shows the choice of account when re-entering Google?

+7
ios google-signin
source share

No one has answered this question yet.

See related questions:

746
Failed to start Xcode process: security
545
Broken infrastructure iOS app on device, dyld: library not loaded, Xcode 6 Beta
390
Design for Facebook authentication on an iOS app that also accesses a secure web service
4
Sign in with another google Firebase iOS account
3
Google login API is not symmetric - user account leak
3
Problem choosing login to your Google Plus account
2
How to fix "User has canceled login." using Google login on iOS?
one
Firebase Auth null user profile information using Google login
0
Various Google Fit Authentication Account Settings
0
Why doesn't my Google login show my account selection after I successfully sign up?

All Articles