📜  firebase auth set data - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:49.597000             🧑  作者: Mango

代码示例1
var user = firebase.auth().currentUser;

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