I am unable to get Firebase Storage work with custom rules and using custom claims.
In my Python Admin panel, I do the following to create the user and assign a clai
For completeness, one need to create a token before setting the token for the user.
Thus full code:
uid = 'some-uid'
additional_claims = {
'client_id': your_custom_client_id
}
# First time, only once needed
custom_token = auth.create_custom_token(uid, additional_claims)
# Then
auth.set_custom_user_claims(uid, additional_claims )