firebase auth set data 1

firebase auth set data

var user = firebase.auth().currentUser;

  displayName: "Jane Q. User",
  photoURL: ""
}).then(function() {
  // Update successful.
}).catch(function(error) {
  // An error happened.

Here is what the above code is Doing:
1. We’re getting the current user from the Auth instance.
2. We’re updating the user’s profile with the updateProfile() method.
3. We’re passing in an object with the new displayName and photoURL properties.
4. We’re handling the Promise returned by the updateProfile() method.

Similar Posts