1var user = firebase.auth().currentUser;
2
3user.updateProfile({
4 displayName: "Jane Q. User",
5 photoURL: "https://example.com/jane-q-user/profile.jpg"
6}).then(function() {
7 // Update successful.
8}).catch(function(error) {
9 // An error happened.
10});