I use Firebase and Swift, for a custom auth with Instagram.
I have this problem now, Remove a user through dashboard, but the user is still logged in?
When I start the app, I have this listener:
Auth.auth().addStateDidChangeListener {
in which I am setting an observer:
ref.child("users/\(user.uid)").observe(.value, with: { (snapshot) in
        print(snapshot)
        ..........
    }, withCancel: { error in
        print(error)
    })
with and withCancel handlers are not executed, because user's token does not exist anymore. ( very weird IMO that even withCancel does not execute). 
I have to catch this situation in code, to force a logout, like the post stated:
check whether you can read to your users area, and if there's nothing there, force a log out.
