[Vuejs]-Unable to use collection.set after createUserWithEmailAndPassword

0👍

When creating the user, the code uses fb.auth:

  fb.auth.createUserWithEmailAndPassword(this.email, this.password)

To access Cloud Firestore, use the Firestore parameter set up in the config file, just like the code does for Auth.

    fb.db.collection('users').doc(res.user.uid).set({
      email: _this.email
    })

Leave a comment