How To Check Whether User is Disabled or Not in Firebase Auth

前端 未结 3 1527
北荒
北荒 2021-01-11 16:01

I have a Login System implemented using Firebase Auth, But Whenever I Disable any user he/she can still be logged.

But When he/she log out and login him/her by thems

3条回答
  •  無奈伤痛
    2021-01-11 16:26

    You can check FirebaseUser.reload() - Manually refreshes the data of the current user (for example, attached providers, display name, and so on).

    FirebaseAuthInvalidUserException thrown if the current user's account has been disabled, deleted, or its credentials are no longer valid

提交回复
热议问题