Generating the Service Account Credentials js code to communicate through the SDK to the Firebase messaging service and is generated from within the Firebase console . Click on the Generate New Private Key button, download the generated file and place it in a suitable directory on the system on which Node.