Skip to content

Commit

Permalink
Update auth.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
nbransby authored Aug 30, 2024
1 parent ecfa47d commit 9e8ef04
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ public actual class AuthResult(internal val ios: FIRAuthDataResult) {
public actual val user: FirebaseUser?
get() = FirebaseUser(ios.user())
public actual val credential: AuthCredential?
get() = ios.credential?.let { AuthCredential(it) }
get() = ios.credential()?.let { AuthCredential(it) }
public actual val additionalUserInfo: AdditionalUserInfo?
get() = ios.additionalUserInfo?.let { AdditionalUserInfo(it) }
get() = ios.additionalUserInfo()?.let { AdditionalUserInfo(it) }
}

public val AdditionalUserInfo.ios: FIRAdditionalUserInfo get() = ios
Expand All @@ -123,11 +123,11 @@ public actual class AdditionalUserInfo(
internal val ios: FIRAdditionalUserInfo,
) {
public actual val providerId: String?
get() = ios.providerID
get() = ios.providerID()
public actual val username: String?
get() = ios.username
get() = ios.username()
public actual val profile: Map<String, Any?>?
get() = ios.profile
get() = ios.profile()
?.mapNotNull { (key, value) ->
if (key is NSString && value != null) {
key.toString() to value
Expand All @@ -137,7 +137,7 @@ public actual class AdditionalUserInfo(
}
?.toMap()
public actual val isNewUser: Boolean
get() = ios.newUser
get() = ios.newUser()
}

public val AuthTokenResult.ios: FIRAuthTokenResult get() = ios
Expand Down

0 comments on commit 9e8ef04

Please sign in to comment.