The CredentialExcluded error is one of the few that are turned into an InvalidState DOM error instead of a NotAllowed DOM error, so consumers of this library need an easy way to recognize it. We have AuthenticatorError::CredentialExcluded for this purpose, but we were returning HIDError::Command(CommandError::StatusCode(StatusCode::CredentialExcluded, None)) when we found an excluded credential on a CTAP1 device.
The
CredentialExcluded
error is one of the few that are turned into anInvalidState
DOM error instead of aNotAllowed
DOM error, so consumers of this library need an easy way to recognize it. We haveAuthenticatorError::CredentialExcluded
for this purpose, but we were returningHIDError::Command(CommandError::StatusCode(StatusCode::CredentialExcluded, None))
when we found an excluded credential on a CTAP1 device.