我从身份验证,数据库和存储(实时数据库)中删除了所有内容,但在调试应用程序时,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();
}
}