step-up-labs / firebase-authentication-dotnet

C# library for Firebase Authentication
MIT License
383 stars 130 forks source link

Can't logout from Google while using FirebaseUI #169

Open djessyczaplicki opened 2 years ago

djessyczaplicki commented 2 years ago

I am trying to logout from Google, but when I try to sign out, it doesn't let me choose another google account

await FirebaseUI.Instance.Client.SignOutAsync();

djessyczaplicki commented 2 years ago

I'm using WPF and I am on v4 btw, if it makes any difference

bezysoftware commented 1 year ago

Is this still the case with latest release?

nelsonhp3 commented 1 year ago

You can use a Provider Custom Parameter to always show a prompt to login when signed out.

FirebaseUI.Initialize(new FirebaseUIConfig {
       ApiKey = "<ApiKey>",
       AuthDomain = "<AuthDomain>",
       Providers = new FirebaseAuthProvider[]
       {
           new GoogleProvider().AddCustomParameters(new System.Collections.Generic.KeyValuePair<string, string>("prompt", "select_account"))
       },
       ...
   });