Types
Types of errors
The native details of a KeychainError.
Import
import { type KeychainErrorDetails } from '@apexnative/keychain';
KeychainErrorDetails
type KeychainErrorDetails = {
nativeCode?: number;
nativeDomain?: string;
cause?: unknown;
};
The third argument of the KeychainError constructor: what the native side said, kept for logs.
| Field | Type | Description |
|---|---|---|
| nativeCode | number | The native code: an iOS OSStatus or LAError, an Android BiometricPrompt code. |
| nativeDomain | string | Where nativeCode comes from, such as NSOSStatusErrorDomain. |
| cause | unknown | The error this one was made from. Becomes the error's cause, not enumerable. |