File tree 2 files changed +3
-2
lines changed
firebase-auth/src/jsMain/kotlin/dev/gitlive/firebase/auth
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import kotlinx.coroutines.await
13
13
import kotlinx.coroutines.channels.awaitClose
14
14
import kotlinx.coroutines.flow.Flow
15
15
import kotlinx.coroutines.flow.callbackFlow
16
+ import kotlin.js.Json
16
17
import kotlin.js.json
17
18
import dev.gitlive.firebase.auth.externals.AuthResult as JsAuthResult
18
19
import dev.gitlive.firebase.auth.externals.AdditionalUserInfo as JsAdditionalUserInfo
@@ -131,7 +132,7 @@ public actual class AdditionalUserInfo(
131
132
public actual val profile: Map <String , Any ?>?
132
133
get() = rethrow {
133
134
val profile = js.profile ? : return @rethrow null
134
- val entries = js(" Object.entries" ) as (dynamic ) -> Array <Array <Any ?>>
135
+ val entries = js(" Object.entries" ) as (Json ) -> Array <Array <Any ?>>
135
136
return @rethrow entries
136
137
.invoke(profile)
137
138
.associate { entry -> entry[0 ] as String to entry[1 ] }
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ public external interface AuthResult {
176
176
public external interface AdditionalUserInfo {
177
177
public val providerId: String?
178
178
public val username: String?
179
- public val profile: dynamic
179
+ public val profile: Json ?
180
180
public val newUser: Boolean
181
181
}
182
182
You can’t perform that action at this time.
0 commit comments