Reputation: 8894
How do I regenerate my Web API key for Google Firebase? I deleted the autogenerated one due to misguided reasons.
If it's not deletable, do I need to create just a new App or a new Project?
Upvotes: 20
Views: 15315
Reputation: 59
I just went through this and realised there is a "RESTORE DELETED CREDENTIALS" for cases it's not meant to "create" but "restore" case instead
Upvotes: 0
Reputation: 139019
To create a new Web API Key, you should open the Google Cloud Console, select the project, then select Credentials from the left menu, and then hit "CREATE CREDENTIALS" and select "API key".
Because a Firebase project is a Google Cloud project, when you create a new Web API Key, the key is automatically added inside the Firebase project. It will take about 5 minutes to propagate. Also, don't forget to download the google-services.json
and check if the new Web API Key is the same as the one in the Google Cloud Console. Unfortunately, such a change isn't reflected in the Firebase Console.
Upvotes: 1
Reputation: 21
But after the key is reset it does not reflect with the new Web API key generated under firebase project settings.
Upvotes: 2
Reputation: 8894
Go to your API account, select a project at the "Select a project" dropdown in the upper left, and "Create Credentials" of the API Key variety.
Firebase will link to your key automatically.
Upvotes: 46