PasskeyError
Every way a passkey operation can fail, across all platforms. fixHint is non-null when a developer can fix the cause (configuration, options). checkId names the setup check from the PassKi check catalog that covers the cause, the same ID PasskeyDoctor, ./gradlew passkiCheck and the web verifier report, and docsUrl links its docs page.
Open: new subtypes may be added in minor releases; keep an else branch in exhaustive whens.
Inheritors
Types
A passkey from the options' excludeCredentials already exists on this device. Not reported below iOS 17.4, which ignores excludeCredentials.
The user dismissed the passkey sheet. Usually not worth showing an error for.
The request didn't run to the end, and nothing is wrong with it: the system interrupted it (e.g. the app went to the background), or another PassKi passkey request was still showing (only one runs at a time). Safe to retry; don't show it to users as a failure.
No matching passkey is available on this device. Offer another sign-in method.
The device, OS or platform does not support the requested operation.
Properties
What kind of failure this is, for deciding what to show. The set of categories is closed, so a when over it needs no else; a new error type always joins an existing category.
True when the user ended the request or it was interrupted (Cancelled, Interrupted): show no error.