title: firebase.auth().createUserWithEmailAndPassword Undefined is not a function
body: <p>I am following the firebase documentation on user management</p>
  
  <pre><code>var firebase = require('firebase');
  
  // Initialize Firebase
  firebase.initializeApp({
      serviceAccount: "./&lt;mysecreturledittedout&gt;.json",
      databaseURL: "https://&lt;mydatabaseurljusttobesafe&gt;.firebaseio.com"
  });
  
  router.get('/create', function(req, res){
      var email = req.email;
      var password = req.password;
      firebase.auth().createUserWithEmailAndPassword(email, password).catch(function(err){ // LINE 27 CRASH
          var errorCode = err.code;
          var errorMessage = error.message;
          console.log("ERROR");
          console.log(errorCode, errorMessage);
      });
  });
  </code></pre>
  
  <p>I get the following error</p>
  
  <pre><code>undefined is not a function
  
  TypeError: undefined is not a function
      at d:\Users\Kitty\Code\Practice2\routes\index.js:27:21
  </code></pre>
  
  <p>From doing a little bit of research, I think undefined is not a function is basically a javascript version of a null pointer exception (could be wrong)</p>
  
  <p>I have configured my service account and project on firebase. I am running this on localhost. Thanks. I am looking primarily for debugging tips, as I'm not sure how to test what isn't working.</p>