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

前端 未结 3 1509
北荒
北荒 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:16

    Use theFirebaseUser.reload() with an onCompleteListener and if this listener returns a failure, display a prompt and sign the user out or move to a login page

提交回复
热议问题