How to make a user sign out in Firebase?

前端 未结 13 1640
猫巷女王i
猫巷女王i 2020-12-15 04:22

I am making a simple authentication app in Android using Firebase authentication. Till now I am successful in signing the user in, however the issue is that the user remains

13条回答
  •  生来不讨喜
    2020-12-15 04:57

    This one just signs you out from the current application .

    if you are using a fragment do this

    AuthUI.getInstance().signOut(getActivity());
    

    if you are using an activity do this

    AuthUI.getInstance().signOut(getApplicationContext);
    

    cheers!

提交回复
热议问题