Class PasskeyAuthenticatorException
The exception that is thrown when a passkey operation fails or is cancelled by the person.
Implements
Inherited Members
Namespace: Singulink.Net.Http.Api.Client.Passkeys
Assembly: Singulink.Net.Http.Api.Client.dll
Syntax
public sealed class PasskeyAuthenticatorException : Exception, ISerializable
Remarks
The message comes from the browser where it supplied one. It isn't localized or written for the person using the app; Reason tells the failures apart.
Constructors
| Name | Description |
|---|---|
| PasskeyAuthenticatorException(PasskeyErrorReason) | Initializes a new instance of the PasskeyAuthenticatorException class with the default message for the reason. |
| PasskeyAuthenticatorException(PasskeyErrorReason, string?) | Initializes a new instance of the PasskeyAuthenticatorException class. |
| PasskeyAuthenticatorException(PasskeyErrorReason, string?, Exception?) | Initializes a new instance of the PasskeyAuthenticatorException class. |
Properties
| Name | Description |
|---|---|
| IsCancellation | Gets a value indicating whether the person may have cancelled the operation: true if Reason is Cancelled or NotAllowed. Browsers report a dismissed or timed out passkey prompt as NotAllowed, the same as an operation they refuse. |
| Reason | Gets the reason the operation failed. |