1. Sign in to Firebase and click on your project
If you don't have any projects, check here how to create one.
2. Click , then select Project settings.
3. Click on Service accounts.
4. Click on Generate new private key.
A popup will open. Click on Generate key and the JSON file will be downloaded to your computer.
Your private key gives access to your project's Firebase services. Keep it confidential and never store it in a public repository. Also, your key can't be recovered if lost.