Service Accounts

Create a service account for authenticating multiple Firebase features, such as Database, Storage and Auth in our api stack

Generate a new private key

Open that JSON file and record down the following settings:

  • private_key
  • client_email

Configure private_key, and client_email into the api/.env

FIREBASE_PRIVATE_KEY=YOUR_PRIVATE_KEY
FIREBASE_CLIENT_EMAIL=YOUR_CLIENT_EMAIL

Repeat the same steps to create service accounts for the production environment.