We have account verification on our system which enables the admin to confirm or reject user accounts. Rejecting account means deleting the user from the firebase authentication as well as its corresponding document on the user collection.
Delete user from firebase authentication.
Actions & Logic
I tried the delete user action, however, instead of deleting the specific account based on the user reference, it deleted the account of the admin because that is the authenticated user at that time. Is there a way i can change the function to delete a specific user instead of the authenticated user?
Yes
2
5 replies