title: Firebase create user with email, password, display name and photo url
body: <p>According to Firebase site, I am using this code to create a new user:</p>
  
  <pre><code>firebase.auth().createUserWithEmailAndPassword(email, password).catch(function(error) {});
  </code></pre>
  
  <p>How can I add display name and photo url to Auth when creating the new user? </p>
  
  <p>This <a href="https://firebase.google.com/docs/reference/ios/firebaseauth/protocol_f_i_r_user_info-p#a604fe5f388e94434558e1f8ba9d8e9f4" rel="noreferrer">link</a> shows the supported user data returned from an identity provider in Auth.</p>