From ce6e883c2b88a1f7bdabae61b033129c1b7a7f8b Mon Sep 17 00:00:00 2001 From: Nick Cooke Date: Mon, 4 Nov 2024 16:53:03 -0500 Subject: [PATCH] [Auth] Fix casting error in Swift 6 --- .../Sources/Swift/Backend/RPC/VerifyAssertionResponse.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FirebaseAuth/Sources/Swift/Backend/RPC/VerifyAssertionResponse.swift b/FirebaseAuth/Sources/Swift/Backend/RPC/VerifyAssertionResponse.swift index 9cf822cae0e..c031aa22c43 100644 --- a/FirebaseAuth/Sources/Swift/Backend/RPC/VerifyAssertionResponse.swift +++ b/FirebaseAuth/Sources/Swift/Backend/RPC/VerifyAssertionResponse.swift @@ -158,10 +158,10 @@ struct VerifyAssertionResponse: AuthRPCResponse, AuthMFAResponse { if let rawUserInfo = dictionary["rawUserInfo"] as? String, let data = rawUserInfo.data(using: .utf8) { if let info = try? JSONSerialization.jsonObject(with: data, options: .mutableLeaves), - let profile = info as? [String: Any] { + let profile = info as? [String: any Sendable] { self.profile = profile } - } else if let profile = dictionary["rawUserInfo"] as? [String: Any] { + } else if let profile = dictionary["rawUserInfo"] as? [String: any Sendable] { self.profile = profile } username = dictionary["username"] as? String