title: How to add additional information to firebase.auth()
body: <p>How can I add extra attributes phone number and address to this data set?  It seems like Firebase documentation doesn't specify anything about that.</p>
  
  <p>I have implemented the login, register and update using <code>firebase.auth()</code></p>
  
  <p><strong>Login :</strong> </p>
  
  <pre><code>//Email Login
  firebase.auth().signInWithEmailAndPassword(email, password).then(
     ok =&gt; {
          console.log("Logged in User",ok.user);              
      },
      error =&gt; {
          console.log("email/pass sign in error", error);
      }
  );
  </code></pre>
  
  <p><strong>Register:</strong> </p>
  
  <pre><code> //Sign Up
  firebase.auth().createUserWithEmailAndPassword(email, password).then(
      ok =&gt; {
          console.log("Register OK", ok);
      },
      error =&gt; {
          console.log("Register error", error);
      }
  )
  </code></pre>
  
  <p><strong>Update:</strong> </p>
  
  <pre><code>//User Authentication
  firebase.auth().onAuthStateChanged(function(user) {
    if (user) {
      $scope.data=user;
    } else {
      // No user, Redirect to login page
    }
  });
  
  //Save Function
  $scope.save=function(values){
  
      $scope.data.updateProfile({
  
        displayName: "Test User",
        email: "test@gmail.com",
       /* phone: 123412341,
        address: "Temp Address",*/
        photoURL: "www.example.com/profile/img.jpg"
  
      }).then(function() {
  
       // Update successful.
  
      }, function(error) {
  
       // An error happened.
  
      }); 
  
  };  
  </code></pre>