Skip to content

Commit

Permalink
[Auth] Fix casting error in Swift 6 (#14025)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncooke3 authored Nov 4, 2024
1 parent c73f83a commit 0a49232
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a49232

Please sign in to comment.