How do I log out of my Google Account in Firebase such when I log in again, I can choose the account I would like to sign in with?

Tags: , , , ,

This is my coding in my java class file where my log out button is located at. How do I log out of my Google Account in Firebase in android studio, such that when I log in again, I am allowed to choose the account I am able to sign in with. Right now, I am always being logged in with the same account.

    private GoogleSignInClient mGoogleSignInClient;

    Button btnLogout;
    FirebaseAuth mAuth;

    protected void onCreate(Bundle savedInstanceState) {

        btnLogout = findViewById(;

        btnLogout.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                Intent intent = new Intent(Profile.this, SplashPage.class);


FirebaseAuth.getInstance().signOut() does soft sign out and if you want to be able to choose Google user again on sign in do full google sign out GoogleSignIn.getClient(activity, googleSignInOptions).signOut()

Source: stackoverflow