File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
androidMain/kotlin/dev/gitlive/firebase/auth
commonMain/kotlin/dev/gitlive/firebase/auth Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ actual class FirebaseUser internal constructor(val android: com.google.firebase.
4848 actual suspend fun updateProfile (displayName : String? , photoUrl : String? ) {
4949 val request = UserProfileChangeRequest .Builder ()
5050 .setDisplayName(displayName)
51- .setPhotoUri(photoURL ?.let { Uri .parse(it) })
51+ .setPhotoUri(photoUrl ?.let { Uri .parse(it) })
5252 .build()
5353 android.updateProfile(request).await()
5454 }
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ expect class FirebaseUser {
2727 suspend fun updateEmail (email : String )
2828 suspend fun updatePassword (password : String )
2929 suspend fun updatePhoneNumber (credential : PhoneAuthCredential )
30- suspend fun updateProfile (displayName : String? = null , photoUrl : String? = null )
30+ suspend fun updateProfile (displayName : String? = this.displayName , photoUrl : String? = this.photoURL )
3131 suspend fun verifyBeforeUpdateEmail (newEmail : String , actionCodeSettings : ActionCodeSettings ? = null)
3232}
3333
You can’t perform that action at this time.
0 commit comments