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.
48
48
actual suspend fun updateProfile (displayName : String? , photoUrl : String? ) {
49
49
val request = UserProfileChangeRequest .Builder ()
50
50
.setDisplayName(displayName)
51
- .setPhotoUri(photoURL ?.let { Uri .parse(it) })
51
+ .setPhotoUri(photoUrl ?.let { Uri .parse(it) })
52
52
.build()
53
53
android.updateProfile(request).await()
54
54
}
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ expect class FirebaseUser {
27
27
suspend fun updateEmail (email : String )
28
28
suspend fun updatePassword (password : String )
29
29
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 )
31
31
suspend fun verifyBeforeUpdateEmail (newEmail : String , actionCodeSettings : ActionCodeSettings ? = null)
32
32
}
33
33
You can’t perform that action at this time.
0 commit comments