How to Signout a user in Flutter with Firebase authentication

前端 未结 5 723
我在风中等你
我在风中等你 2021-01-03 19:52

I have a problem signing out the current user from my app

the method I am using is as follows:

....
onPressed:_signOut
//jump to function


  void _s         


        
5条回答
  •  [愿得一人]
    2021-01-03 20:03

    Most demos I've looked at only logout of Firebase using a command like _auth.signOut();

    This doesn't appear to exist anymore (see Collin's reply above):

    _googleSignIn.signOut()
    

    So, I had to use this one method to signout/logout of Google.

    _googleSignIn.disconnect();
    

提交回复
热议问题