Service Account Keys
- Scroll back up to the top of the page.
- Click Service accounts.
- Scroll down to Firebase Admin SDK.
- Under the Firebase Admin SDK section, click Generate new private key.
- Click Generate key.
- Once the JSON is downloaded, open it.
It should look like this:
{
"type": "service_account",
"project_id": "the-project-id",
"private_key_id": "the-private-key-id",
"private_key": "the-private-key",
"client_email": "the-client-email",
"client_id": "the-client-id",
"auth_uri": "the-auth-uri",
"token_uri": "the-token-uri",
"auth_provider_x509_cert_url": "the-auth-provider-x509-cert-url",
"client_x509_cert_url": "the-client-x509-cert-url"
}
Copy the private_key and paste it into the .env.local
project files.
The file should look like this:
SERVICE_ACCOUNT_PRIVATE_KEY=the-private-key
Copy the client_email and paste it into the .env.local
project files.
The file should look like this:
SERVICE_ACCOUNT_CLIENT_EMAIL=the-client-email
Copy the project_id and paste it into the .env.local
project files.
The file should look like this:
SERVICE_ACCOUNT_PROJECT_ID=the-project-id