You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When updating auth custom claims, i need to make sure i always include all existing claims, because setCustomUserClaims always overrides all claims. --> When multiple requests run simultaneously, we run into transactional issues (2 requests read claims, first requests updates claims with a new field, second request updates claims with another field but overrides changes from first request).
Describe the solution you'd like setCustomUserClaim('myClaim', value) in addition to setCustomUserClaims(allClaims)
Describe alternatives you've considered
Writing claims to my own db, then regularly sync it to firebase -> this is too complicated though for something that could be solved much simpler with a new method setCustomUserClaim.
Additional context
none
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
When updating auth custom claims, i need to make sure i always include all existing claims, because
setCustomUserClaims
always overrides all claims. --> When multiple requests run simultaneously, we run into transactional issues (2 requests read claims, first requests updates claims with a new field, second request updates claims with another field but overrides changes from first request).Describe the solution you'd like
setCustomUserClaim('myClaim', value)
in addition tosetCustomUserClaims(allClaims)
Describe alternatives you've considered
Writing claims to my own db, then regularly sync it to firebase -> this is too complicated though for something that could be solved much simpler with a new method
setCustomUserClaim
.Additional context
none
The text was updated successfully, but these errors were encountered: