UNPKG

@neabyte/touchid

Version:

Native macOS Touch ID authentication with device identification, TTL caching, and TypeScript support. Features hardware UUID, device serial, and biometric type detection.

20 lines (19 loc) 759 B
import type { TouchIDResult, TouchIDOptions, TouchIDInterface, BiometricInfo } from './types/touchid.js'; import { TouchIDEventEmitterImpl } from './utils/event-emitter.js'; export declare class TouchIDService implements TouchIDInterface { private nativeModule; private initialized; private initPromise; private eventEmitter; constructor(); get events(): TouchIDEventEmitterImpl; private init; private _init; private waitForInit; isAvailable(): Promise<boolean>; getBiometricInfo(): Promise<BiometricInfo>; authenticate(options?: TouchIDOptions): Promise<TouchIDResult>; test(): Promise<void>; } export declare const createTouchIDService: () => TouchIDService; export declare const touchID: TouchIDService;