Firebase Authentication Disable account

Viewed 113

I'm using firebase with Angular Framework, and the business logic is that the user can't register and the admin should do that, so I used firebase rest API. The question here is it possible to disable any user account using firebase rest API (I Found only a Delete account)?!

1 Answers

There is no separate call for disabling account, since it's "just" an update of the user profile (as shown in the documentation on updating a user account with the Admin SDK).

As far as I can tell from reading the source code for the relevant Admin SDK, you should be able to pass this same disabled value to the /accounts:update REST API despite it not being mentioned in the docs.

Related