This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

webauthn / src / types.zig
859 B 40 lines
1pub const Ceremony = enum { 2 create, 3 get, 4 5 pub fn webauthnType(self: Ceremony) []const u8 { 6 return switch (self) { 7 .create => "webauthn.create", 8 .get => "webauthn.get", 9 }; 10 } 11}; 12 13pub const UserVerification = enum { 14 discouraged, 15 preferred, 16 required, 17}; 18 19pub const Error = error{ 20 InvalidBase64Url, 21 InvalidJson, 22 MissingField, 23 InvalidClientDataType, 24 ChallengeMismatch, 25 OriginMismatch, 26 AuthenticatorDataTooShort, 27 RpIdHashMismatch, 28 UserPresenceRequired, 29 UserVerificationRequired, 30 AttestedCredentialDataMissing, 31 ExtensionsUnsupported, 32 UnsupportedAlgorithm, 33 InvalidCoseKey, 34 InvalidSignature, 35 SignatureVerificationFailed, 36 SignCountMismatch, 37 InvalidAttestationObject, 38 UnsupportedAttestationFormat, 39 CredentialIdMismatch, 40};