For using Firebase Admin SDK, we'll need a Firebase project where we have service account to communicate with the Firebase services and a configuration file that includes the service account's credentials.
To configure the Firebase Admin SDK, follow these steps:
- Log in to Firebase Console, select the <project_name> project, and click on the setting icon in Project Overview:
![](https://static.packt-cdn.com/products/9781788477413/graphics/assets/6dbddc16-0b9f-4c88-b596-9ab9097fd3b6.png)
Overview tab
- Go to the Service Accounts tab inside Project Settings.
-
Click on the GENERATE PRIVATE KEY button at the bottom of Firebase admin section; it will generate the JSON file that contains the service account credentials:
![](https://static.packt-cdn.com/products/9781788477413/graphics/assets/a9b3f3ce-9a6c-4db4-8e6d-3fd5d526047d.png)
This JSON file contains very sensitive information about your service account and private encryption key. So never share and store it in a public repository; keep it confidential. If we lose this file because of any...