title: Firebase - need to fix javascript sdk auth error
body: <p>I'm always getting this error:</p>
  
  <p>TypeError: firebase.auth is not a function</p>
  
  <p>Here is my code base, can some one help me plz?</p>
  
  <pre><code>const functions = require('firebase-functions');
  var firebase = require("firebase/app");    
  
  var firebaseConfig = {
    apiKey: "AIzaSyCGLNi4KMtUSC3CC3s6V-ZLQA87fDEuP-w",
    authDomain: "octatradesfirebasedemo.firebaseapp.com",
    databaseURL: "https://octatradesfirebasedemo.firebaseio.com",
    projectId: "octatradesfirebasedemo",
    storageBucket: "octatradesfirebasedemo.appspot.com",
    messagingSenderId: "889486380424",
    appID: "1:889486380424:ios:fb54696dc8f4a731df7e3d"
  };
  
  firebase.initializeApp({firebaseConfig});     
   console.log(firebase.auth);    
  });
  </code></pre>