title: Firebase provided authentication credentials are invalid
body: <p>The Firebase project I was working on was deleted and a new project has been created. I now need to use the credentials for the new project, which I have done. I generated a new Service Account Key from the google cloud console and replaced the old Service Account Key with thew new one. I replace the database(URL) with the URL to the new project as well. I updated my .firebaserc file with the new project. Still I am getting the error:</p>
  
  <p><code>FIREBASE WARNING: Provided authentication credentials for the app named "[DEFAULT]" are invalid. This usually indicates your app was not initialized correctly. Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.</code></p>
  
  <p>I updated my config file with the new Service Account Key, updated the props passed to firebase.initializeApp, updated the .firebaserc file, am I missing something else I'm missing?</p>
  
  <p>I only have an editor role for the project, and I generated the Service Account Key using google cloud. Do I need a owner role to obtain a Service Account Key that works?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>{
      "serviceAccount": {
        "type": "service_account",
        "project_id": "new-project",
        "private_key_id": &lt;SOME KEY&gt;,
        "private_key": "-----BEGIN PRIVATE KEY-----\nSOME-KEY",
        "client_email": "new-project@new-project.iam.gserviceaccount.com",
          "client_id": &lt;SOME KEY&gt;,
          "auth_uri": "https://accounts.google.com/o/oauth2/auth",
          "token_uri": "https://accounts.google.com/o/oauth2/token",
          "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
          "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/new-project%40new-project.iam.gserviceaccount.com"
        }
      }</code></pre>
  </div>
  </div>
  </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>firebase.initializeApp({
    credential: firebase.credential.cert(serviceAccount),
    databaseURL: 'https://new-project.firebaseio.com',
  });</code></pre>
  </div>
  </div>
  </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>{
    "projects": {
      "default": "new-project"
    }
  }</code></pre>
  </div>
  </div>
  </p>