Should this not state WebAuthCredentialID is the reference ID ? Since (I assume) Authenticator.WebAuthID is inherently the same as User.WebAuthID and thus by definition using WebAuthID be expected to return multiple authenticators (i.e. behavior of GetAuthenticators(user User) and the only way to retrieve one authenticator would be using WebAuthCredentialID.
I have a question about the definition of
id
in GetAuthenticator (https://github.com/koesie10/webauthn/blob/8626f9623b4b03a1fef679e1f8576174acdc6551/webauthn/user.go#L28)Should this not state
WebAuthCredentialID
is the reference ID ? Since (I assume)Authenticator.WebAuthID
is inherently the same asUser.WebAuthID
and thus by definition usingWebAuthID
be expected to return multiple authenticators (i.e. behavior ofGetAuthenticators(user User)
and the only way to retrieve one authenticator would be usingWebAuthCredentialID
.