I\'m trying to use a Firebase Cloud Function to update a document within my Firestore database, when one of my documents has been updated using a trigger. The trigger is cal
I've met the same error and have not found the solution anywhere so I post it here if it can help someone...
We use 2 firebase projects (DEV, PROD) and deploy the same functions on both. The PERMISSION_DENIED appears also when you specify a wrong projectId in :
admin.initializeApp({projectId: 'your_project_id'});