When calling admin.auth().createCustomToken()
, I get the following error:
Permission iam.serviceAccounts.signBlob is required to perform this operation on service account projects/-/serviceAccounts/[email protected].; Please refer to https://firebase.google.com/docs/auth/admin/create-custom-tokens for more details on how to use and troubleshoot this feature.
So I go look at the mentioned service account in the IAM section of the cloud platform console, and it has the Editor
role, which, indeed, does not have the signBlob
permission. What role could I change it to to fix this? I tried creating a custom role based on Editor, but the createBlob permission can't be added to custom roles.