tweag / webauthn

A library for parsing and validating webauthn/fido2 credentials
Apache License 2.0
34 stars 11 forks source link

Further document VerificationError types, turn them into records #117

Closed ErinvanderVeen closed 2 years ago

ErinvanderVeen commented 2 years ago

Expand documentation of the VerificationErrors produced by the different attestation statement formats, and turn any of them with an arity higher than 2 into a record. This allows for per-field documentation. Most errors were also renamed to be more consistent and the VerificationError-prefix was dropped where present. Patternmatching on specific errors wherever used must be changed to accomodate this change. Additionally, missing documentation for the arguments of the lookupAttestationStatementFormat function was added.