DEV Community

Discussion on: Permission error when generating a custom token on Cloud Functions

Collapse
 
wceolin profile image
Will Ceolin

Not sure but maybe you have the service account from your dev environment in production? In the IAM permissions console, double-check what email address is showing up in the "Member" column for the row with "name: firebase-adminsdk" and "role: Service Account Token Creator".

Your email address should be something like this: firebase-adminsdk-RANDOMCODE@PROJECT-NAME.iam.gserviceaccount.com.

If you have the correct value there, then maybe contact Firebase Support. They're usually pretty responsive.