I have some custom claims like
{
claim1: true,
claim2: true,
}
I want to remove one claim
{
claim2: true,
}
In firebase authentication, is there a way to remove a custom claim? Here use
admin.auth().updateUser(uid, {claim: null});
but update user not have claim property.
if I use this, this remove the previous claims and also set null, not removed
admin.auth().setCustomUserClaims(context.auth.uid, {claim1: null});
{
claim1: null,
}