var uid = firebase.auth().createUserWithEmailAndPassword(this.email , this.password) .then(cred => { ref.set({ alias: this.alias, cred_id: cred.uid }) }).then(() => { this.$router.push({name: 'welcome'}) }) .catch(err=> { console.log(err) this.feedback = err.message })
cred_id: cred.uid
Quote:Function DocumentReference.set() called with invalid data. Unsupported field value: undefined (found in field cred_id)
UserCredential
uid
user
User
ref.set({ alias: this.alias, cred_id: cred.user.uid })
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)