firebase-admin-node icon indicating copy to clipboard operation
firebase-admin-node copied to clipboard

Support updating custom claims in updateUser()

Open brettwillis opened this issue 3 years ago • 2 comments

Closes #1876

Summary

Currently, the custome user claims can be updated with setCustomUserClaims(), and the user details can be updated with updateUser(). Both use same /accounts:update REST API under the hood.

This allows account and claims info to be updated in one hit using the updateUser() method.

brettwillis avatar Aug 22 '22 21:08 brettwillis

@lahirumaramba any thoughts on this?

brettwillis avatar Feb 19 '23 21:02 brettwillis

@lahirumaramba @prameshj I completed the test suite adding integration tests and unit tests. All relevant tests that were applied to setCustomUserClaims() are applied to the relevant claims functionality in updateUser(). Would appreciate a moment to review 🙏🏼 .

brettwillis avatar Mar 09 '23 16:03 brettwillis