updateProfile

fun updateProfile(name: String = this.name, email: String = this.email, phone: String = this.phone, imageId: String = this.profilePictureImageId)

Updates the user's profile details.

Only the specified properties are updated. If unspecified, properties keeps their old (current) values.

Parameters

name

New display name

email

New email address

phone

New phone number

imageId

New profile picture

Throws

if at least one of name, email, or phone is blank.