Skip to content

Commit 0a49232

Browse files
authored
[Auth] Fix casting error in Swift 6 (#14025)
1 parent c73f83a commit 0a49232

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

FirebaseAuth/Sources/Swift/Backend/RPC/VerifyAssertionResponse.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ struct VerifyAssertionResponse: AuthRPCResponse, AuthMFAResponse {
158158
if let rawUserInfo = dictionary["rawUserInfo"] as? String,
159159
let data = rawUserInfo.data(using: .utf8) {
160160
if let info = try? JSONSerialization.jsonObject(with: data, options: .mutableLeaves),
161-
let profile = info as? [String: Any] {
161+
let profile = info as? [String: any Sendable] {
162162
self.profile = profile
163163
}
164-
} else if let profile = dictionary["rawUserInfo"] as? [String: Any] {
164+
} else if let profile = dictionary["rawUserInfo"] as? [String: any Sendable] {
165165
self.profile = profile
166166
}
167167
username = dictionary["username"] as? String

0 commit comments

Comments
 (0)