title: Firebase database user info
body: <p>I’m trying to make a website where a user can login with a username a password <strong>and a name</strong></p>
  <p>This function is not implemented in firebase authentication option so I tried using its real-time database
  Here is my code so far:</p>
  <pre><code>export function signup(email, password, name) {
    return auth().createUserWithEmailAndPassword(email, password).then((userCredential) =&gt; {
        db.ref(&quot;users&quot;).ref(userCredential.uid).push({
        name: name
      });
    })
  }
  </code></pre>
  <p>Saving the data does not work but I think I have a good start.</p>