Я хочу удалить пользовательские заявки Firebase и сбросить заявки пользователей по умолчанию, я попытался установить пустые утверждения.
Я хочу, чтобы претензии возвращались неопределенными по умолчанию
претензии по умолчанию
после удаления
код 1:.
admin.auth().setCustomUserClaims(userRecord.uid, null).then(() => {
// See the contents of userRecord.
}).catch((error) => {
console.log("Error delete staff claim" + error.message);
});
код 2:.
admin.auth().setCustomUserClaims(userRecord.uid, {}).then(() => {
// See the contents of userRecord.
}).catch((error) => {
console.log("Error delete staff claim" + error.message);
});