How to delete firebase Authentication Users from Android App?

后端 未结 3 868
暖寄归人
暖寄归人 2021-01-27 14:00

Firebase dashboard view here

I need to remove A user from firebase authenticated Users list - using my mobile application. Authentication method is email and password au

3条回答
  •  忘了有多久
    2021-01-27 14:23

    To remove an other user you have to use Firebase Cloud Functions.

    Here an example to delete a user with the id.

    admin.auth().deleteUser(uid)
    .then(function() {
        console.log("Successfully deleted user");
    })
    .catch(function(error) {
        console.log("Error deleting user:", error);
    });
    

    (You must be logged as an admin)

    Then you can create an HTTP Trigger to call this function with parameters.

提交回复
热议问题