It's not possible to update multi factor enrollments with UpdateUser() function. Create and update API requests have different structure when we speaking about MFA (don't know who thought it will be cool to do that). It's also not required to pass fields like UID or DisplayName when updating or creating MFA.
Describe your environment
Describe the problem
It's not possible to update multi factor enrollments with
UpdateUser()
function. Create and update API requests have different structure when we speaking about MFA (don't know who thought it will be cool to do that). It's also not required to pass fields likeUID
orDisplayName
when updating or creating MFA.We can see the valid implementation in the firebase-admin-node repository
Steps to reproduce:
UpdateUser
Relevant Code: