title: Cannot send data to firebase collection
body: <p>I'm trying to send data on firebase collection but I can't figure out why it can't be sent. Function called <code>createUserWithEmailAndPassword()</code> works normally. In other functions sending data in firebase collection is working fine when I want to send it, but here it doesn't work for some unknown reason. Is this some bug or what?</p>
  <p>My function:</p>
  <pre><code>SignUp() {
    firebase
      .auth()
      .createUserWithEmailAndPassword(this.email, this.password);
    try {
      
      const unique = this.email;
      db.collection(&quot;user&quot;)
        .doc(unique)
        .set({
          name: this.name,
          surname: this.surname,
          email: this.email,
          birth_date: this.birth_date,
          city: this.city,
          phone_number: this.phone_number,
        });
      this.success_register=true;
    }
     catch(error) {
        if ((store.currentUser = null)) this.$router.replace({ name: &quot;signup&quot; });
      }
    
  }
  </code></pre>