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?
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?
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