Setting up Firebase Admin SDK

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:

  1. Log in to Firebase Console, select the <project_name> project, and click on the setting icon in Project Overview:
Overview tab
  1. Go to the Service Accounts tab inside Project Settings.
  2. 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:

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 reason then, we can generate it again, and we'll no longer access Firebase Admin SDK with the old file.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset