In the Firebase console, open Settings > Service Accounts . Click Generate New Private Key, then confirm by clicking Generate Key. Securely store the JSON file containing the key. When authorizing via a service account, you have two choices for providing the credentials to your application.