Open
Description
[REQUIRED] Step 2: Describe your environment
- Operating System version: NA
- Firebase SDK version: 13.4.0
- Firebase Product: auth (node.js admin sdk)
- Node.js version: 20
- NPM version: NA
[REQUIRED] Step 3: Describe the problem
The deleteUsers() API does not trigger auth.user().onDelete() function calls for each individually deleted user.
This was unexpected for me, and the issue here is that this behavior was not documented in the place where I looked: the function docstring.
After firebase/firebase-functions#860, I can see that this behavior was documented here https://firebase.google.com/docs/auth/admin/manage-users#delete_multiple_users
However, it is not documented on the actual function docstring:
firebase-admin-node/src/auth/base-auth.ts
Lines 456 to 469 in 3c2cb9f
I would have preferred to see the same warning there, since this is what appears in IDEs when you may be poking around for a bulk version of deleteUser()
.