Below are the steps to download the service account key, a JSON file that allows us to authenticate with Firebase services.

  1. Select a project.

Untitled

  1. Go to Project Settings

Captura de pantalla 2025-04-25 a la(s) 11.13.51 a. m..png

  1. Select the “Service Accounts” tab

Untitled

  1. In this view, click the “Generate new private key” button.

Captura de pantalla 2025-04-25 a la(s) 11.15.43 a. m..png

  1. Finally, click on the “Generate Key” button

Captura de pantalla 2025-04-25 a la(s) 11.16.27 a. m..png

This will download a .json file to your computer.

Official Firebase documentation

Firebase Admin SDK Setup