User Update in Firebase

-1

Does anyone know how we can edit the login data of any user, registered in Firebase by firebase.auth (). createUserWithEmailAndPassword, through an admin panel other than Firebase itself? That is, how can I edit another user's data in Firebase?

    
asked by anonymous 28.08.2016 / 18:22

1 answer

0

You can edit the user information like this:

var user = firebase.auth().currentUser;

user.updateProfile({
  displayName: "Jane Q. User",
  photoURL: "https://example.com/jane-q-user/profile.jpg"
}).then(function() {
  // Update successful.
}, function(error) {
  // An error happened.
});

If you want to change the login:

var user = firebase.auth().currentUser;

user.updateEmail("[email protected]").then(function() {
  // Update successful.
}, function(error) {
  // An error happened.
});

Reference: link

    
30.08.2016 / 15:15