24 lines
497 B
TypeScript
24 lines
497 B
TypeScript
export enum BiometricType {
|
|
NONE = 'NONE',
|
|
TOUCH_ID = 'TouchID',
|
|
FACE_ID = 'FaceID',
|
|
BIOMETRICS = 'Biometrics',
|
|
}
|
|
|
|
export interface BiometricAvailability {
|
|
available: boolean;
|
|
biometryType: BiometricType;
|
|
}
|
|
|
|
export interface AuthenticationResult {
|
|
success: boolean;
|
|
error?: string;
|
|
}
|
|
|
|
export interface UseBiometricReturn {
|
|
isAvailable: boolean;
|
|
biometryType: BiometricType;
|
|
loading: boolean;
|
|
authenticate: () => Promise<boolean>;
|
|
checkAvailability: () => Promise<void>;
|
|
} |