Class PasskeyErrorCodes
Contains the error codes (ErrorCode) of the exceptions thrown by PasskeyService in the
Singulink.Net.Http.Api.Service.Passkeys package, so that apps and their clients can tell the failures apart and word them in their own way.
Namespace: Singulink.Net.Http.Api
Assembly: Singulink.Net.Http.Api.dll
Syntax
public static class PasskeyErrorCodes
Remarks
A sign-in that begins without a valid code challenge fails with CodeChallengeInvalid.
Fields
| Name | Description |
|---|---|
| AlreadyRegistered | The new passkey is already registered. Thrown as a ConflictApiException. |
| CeremonyExpired | The ceremony is unknown, expired, already finished, or was started for something else (such as another user). Thrown as an UnauthorizedApiException for sign-ins, and a ValidationApiException for verifications and registrations. |
| CodeVerifierMismatch | The ceremony was bound to a code challenge and the code verifier is missing or does not match it, so the credential did not come back to the app that started the sign-in. Thrown as an UnauthorizedApiException. |
| NoPasskeys | The user has no passkeys to sign in or verify with. Thrown as an UnauthorizedApiException for sign-ins and a ConflictApiException for verifications. |
| NotRegistered | The passkey is not registered with the relying party, for example because it was removed. Thrown as an UnauthorizedApiException for sign-ins and a ValidationApiException for verifications. A passkey that is registered to another user is reported with WrongAccount instead. |
| VerificationFailed | The credential failed verification. Thrown as an UnauthorizedApiException for sign-ins, and a ValidationApiException for verifications and registrations. |
| WrongAccount | The passkey is registered, but to a different user than the one the sign-in or verification is for. Thrown as an UnauthorizedApiException for sign-ins and a ValidationApiException for verifications. |