After sign in the 1st time, it won't allow you to change a different google account to sign in
Describe the bug When you use the google sign in with one google account, you won't allow you to use a different google account to sign in next time. Usually, when the google login pop up, it let you to choose different accounts. However, this will sign you in the next time without an option for you to change a different account.
To Reproduce Steps to reproduce the behavior:
- Click on the google login button to trigger "await _googleService.LoginAsync();"
- Sign in with a google account #1.
- Close the app and reopen the app
- Click on google login button again.
- It should ask you which google account you want to sign in.
- From 4, it will automatically sign in with the #1 account you used to sign in
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context Add any other context about the problem here.
This is not a bug, this is working as intended. You would need to call the logout method before it prompts you for your credentials. The logout method is documented here.
CrossGoogleClient.Current.Logout();
If you wanted to force your app to logout everytime the user closed the app, you could call this method in the OnSleep() method in your App.xaml.cs, however I would ask you to consider why you would want your users to be prompted to login every-time they open the app.
Got it! Thank you!