When using the action “GenerateTokenV2” from extension FirebaseUtils in Firebase Core, there are 3 input parameters that are needed:
UserId - User Id. Can be any unique identification;
ServiceAccountPrivateKey - This key can be found in the Firebase Project console;
ServiceAccountClientEmail - This client email can be found in the Firebase Project console.
To configure and use the ServiceAccountPrivateKey and ServiceAccountClientEmail, follow the next steps:
1 - Create 2 new site properties called FbClientEmail and FbPrivateKey.
2 - Configure the 2 site properties with the correct values:
Go to the Firebase Console
Click on the “gear” icon
Click on “Project Details”
Click on the “Service Account” tab
On “Firebase Admin SDK”, click on the button “Generate new private key”. A JSON file will be downloaded.
Open the JSON file and copy the values of the keys “client_email” and “private_key” and assign them to the site properties that were just created