I am listening to AUTH changes:
async onAuthStateChanged() {
await firebase.auth().currentUser.reload();
const unsubscribe = firebase.auth().onAuthStateChanged(async (user_auth) => {
if (user_auth) {
//user signed in
} else {
///log out
unsubscribe();
this.props.navigation.navigate('login');
}
})
}
I call onAuthStateChanged()
from onComponentDidMount()
however it doesnt trigger it when I delete/disable a user from Firebase Console.