Skip to content

Commit 190f8a8

Browse files
committed
fixes
1 parent 3203e5b commit 190f8a8

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

FirebaseAuth/Sources/Swift/Backend/RPC/Proto/PasskeyInfo.swift

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,14 @@
1414

1515
import Foundation
1616

17-
public class PasskeyInfo: NSObject, @unchecked Sendable {
17+
public class PasskeyInfo: AuthProto {
1818
/// The display name for this passkey.
1919
public let name: String
2020
/// The credential ID used by the server.
2121
public let credentialID: String
2222

23-
public init?(dictionary: [String: Any]) {
24-
guard let name = dictionary["name"] as? String,
25-
let credentialID = dictionary["credentialId"] as? String else {
26-
return nil
27-
}
28-
self.name = name
29-
self.credentialID = credentialID
23+
public required init(dictionary: [String: AnyHashable]) {
24+
name = dictionary["name"] as! String
25+
credentialID = dictionary["credentialId"] as! String
3026
}
3127
}

0 commit comments

Comments
 (0)