angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

Update only displayName with auth.currentUser.updateProfile

Open profesori opened this issue 9 years ago • 1 comments

Hello,

I'm trying to update the auth user profile display name with this method :

this.afAuth.auth.currentUser.updateProfile({displayName: name})

The problem is that i can't update only the displayName i have this error : Argument of type '{ displayName: string; }' is not assignable to parameter of type '{ displayName: string; photoURL: string; }'. Property 'photoURL' is missing in type '{ displayName: string; }'.

If i do this :

this.afAuth.auth.currentUser.updateProfile({displayName: name,photoUrl:null})

it will destroy the photoUrl value and i don't want that.

Is this an issue or there is another solution ?

Thanks

profesori avatar Aug 31 '17 12:08 profesori

HI @profesori! I'm closing this issue because it does not follow our issue template. It's important to get all the details in the template so we can help you as efficiently as possible. Feel free to open a new one that follows the template.

davideast avatar Sep 01 '17 15:09 davideast