如何从Firebase控制台删除FirebaseUser currentuser?

时间:2019-03-17 12:02:09

标签: android firebase firebase-authentication

我从身份验证,数据库和存储(实时数据库)中删除了所有内容,但在调试应用程序时,currentUser仍然显示为非空。还剩下什么?

请参阅:[https://firebase.google.com/docs/auth/android/manage-users#delete_a_user][1]

代码:

mAuth = FirebaseAuth.getInstance();
        currentUser = mAuth.getCurrentUser();
        databaseReference = FirebaseDatabase.getInstance().getReference();


        if (currentUser == null) {
            sendToStartActivity();
        }


 @Override
    public void onStart() {
        super.onStart();
        if (currentUser != null) {
            databaseReference.child(USERS).child(mAuth.getCurrentUser().getUid()).child(ONLINE).setValue(TRUE);
            showLog("onStart: MainActivity");
        } else {
            sendToStartActivity();
        }
    }

0 个答案:

没有答案