File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Sources/WebAuthn/Ceremonies/Registration Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ public struct PublicKeyCredentialCreationOptions: Encodable {
71
71
72
72
// MARK: - Credential parameters
73
73
/// From §5.3 (https://w3c.github.io/TR/webauthn/#dictionary-credential-params)
74
- public struct PublicKeyCredentialParameters : Equatable , Encodable {
74
+ public struct PublicKeyCredentialParameters : Hashable , Encodable {
75
75
/// The type of credential to be created. At the time of writing always ``CredentialType/publicKey``.
76
76
public let type : CredentialType
77
77
/// The cryptographic signature algorithm with which the newly generated credential will be used, and thus also
@@ -99,6 +99,13 @@ extension Array where Element == PublicKeyCredentialParameters {
99
99
}
100
100
}
101
101
102
+ extension Set where Element == PublicKeyCredentialParameters {
103
+ /// A list of `PublicKeyCredentialParameters` WebAuthn Swift currently supports.
104
+ public static var supported : Self {
105
+ Set ( [ PublicKeyCredentialParameters ] . supported)
106
+ }
107
+ }
108
+
102
109
// MARK: - Credential entities
103
110
104
111
/// From §5.4.2 (https://www.w3.org/TR/webauthn/#sctn-rp-credential-params).
You can’t perform that action at this time.
0 commit comments