title: Firebase "throw new Error('Invalid service account provided');" error message
body: <p>I noticed that Firebase has changed recently. I'm building a node.js app that requires firebase and previously this was enough:</p>
  
  <pre><code>var Firebase = require("firebase");
  var firebaseRef = new Firebase("https://blabla.firebaseio.com/");
  </code></pre>
  
  <p>According to this link: <a href="https://firebase.google.com/docs/web/setup#prerequisites">https://firebase.google.com/docs/web/setup#prerequisites</a></p>
  
  <p>you need to create a firebase project in the new firebase console and then add firebase to your web app. That gives you something similar to:</p>
  
  <pre><code>// Initialize Firebase
  var config = {
    apiKey: '&lt;your-api-key&gt;',
    authDomain: '&lt;your-auth-domain&gt;',
    databaseURL: '&lt;your-database-url&gt;',
    storageBucket: '&lt;your-storage-bucket&gt;'
  };
  firebase.initializeApp(config);
  </code></pre>
  
  <p>However, when I run my node.js application, I receive the following error message:</p>
  
  <pre><code>throw new Error('Invalid service account provided');
  ^
  
  Error: Invalid service account provided
      at new Auth (C:\Projects\lambdaTestFunction\node_modules\firebase\auth-node\auth.js:61:11)
      at Object.serviceFactory [as auth] (C:\Projects\lambdaTestFunction\node_modules\firebase\auth-node\index.js:14:14)
      at F.u (C:\Projects\lambdaTestFunction\node_modules\firebase\app-node.js:14:94)
      at C:\Projects\lambdaTestFunction\node_modules\firebase\auth-node\index.js:31:9
      at C:\Projects\lambdaTestFunction\node_modules\firebase\app-node.js:11:272
      at Array.forEach (native)
      at Object.e.initializeApp (C:\Projects\lambdaTestFunction\node_modules\firebase\app-node.js:11:245)
      at Object.&lt;anonymous&gt; (C:\Projects\lambdaTestFunction\index.js:44:10)
      at Module._compile (module.js:409:26)
      at Object.Module._extensions..js (module.js:416:10)
  </code></pre>
  
  <p>What exactly am I missing?</p>
  
  <p>Thanks in advance.</p>