title: flutter firebaseauth signout() not working
body: <p>I am using the firebase auth signout method but it doesnt seem to be working properly. when i click on the logout button, it is supposed to log the current user out. however, after doing so, the console does not indicate that the firebase auth signout method is actually working, none!</p>
  <p>the app has a sysmte where if the user is online then they will always be redirected to the home page upon opening the app unless they log out from the app (which they will be redirected to the login page). and the app always redirects me to the home page when opening the app, hence it is clear that the firebase auth signout method is not working even after i hit the logout button</p>
  <p>this is my logout method and it is in the <code>Authentication</code> class</p>
  <pre><code>FirebaseAuth _auth = FirebaseAuth();
  
  logOut() async {
      return await _auth.signOut();
  }
  </code></pre>
  <p>this is the callback and the <code>logOutCurrentUser</code> function is called when i click the logout button</p>
  <pre><code>Authentication authentication = Authentication();
    
    logOutCurrentUser(BuildContext context) {
      try {
        authentication.logOut();
        Navigator.pushAndRemoveUntil(context, MaterialPageRoute(builder: (context) =&gt; LoginSignupToggle(true)), (route) =&gt; false);
      }
      catch (e) {
        print(e.toString());
      }
    }
  </code></pre>
  <p>all in all, it seems like <code>FirebaseAuth.instance.currentUser()</code> is still not null even after i hit the logout button which i expect it to be null after logging out</p>
  <p>i have tried searching for an answer as much as i could but nothing seems to work for me</p>