title: Firebase / Angularfire 0.9 - Create new user and profile
body: <p>To create a new user in Angularfire 0.9 I can use the $firebaseAuth service and the $createUser method.</p>
  
  <p>However from what I can tell this method does not return any of the new users credentials. So if I want to add profile to that user what is the best way to retrieve that users Auth Data, specifically the "uid", so I can save the profile data for my new user. Below is an example of what I am trying to do</p>
  
  <pre><code>var FIREBASEURL = "https://&lt;my-firebase&gt;.firebaseio.com"
  
  var ref = new Firebase(FIREBASEURL);
  $rootScope.authObj = $firebaseAuth(ref);
  
  var newUser = {
    email: "email@email.com",
    password: "password",
    displayName: "Display Name",
    favFood: "Food"
  };
  
  $rootScope.authObj.$createUser(newUser.email, newUser.password).then(function() {
  
    console.log("User created successfully!");
  
    // Retrieve new Auth Data specifically uid    
  
    var newAuthData = ??????????
  
    // Remove password from object and create user profile
  
    delete newUser.password;
    newUser.timestamp = Firebase.ServerValue.TIMESTAMP;
  
    var userRef = new Firebase(FIREBASEURL + '/users/');
    userRef.child( newAuthData.uid ).set(newUser);
  
  }).catch(function(error) {
  
    console.error("Error: ", error);
  
  });
  </code></pre>