user name in firebase email code example
Example 1: how to change user password firebase
var user = firebase.auth().currentUser;
var newPassword = getASecureRandomPassword();
user.updatePassword(newPassword).then(function() {
// Update successful.
}).catch(function(error) {
// An error happened.
});
Example 2: update photoURL firebase
this.$fireAuth.currentUser.updateProfile({
displayName: '',
photoURL: '',
email: ''
})
.then((r) => {
console.log(r)
})
.catch((e) => {
console.log(e)
})