capacitor-biometric-authentication
Version:
Framework-agnostic biometric authentication library. Works with React, Vue, Angular, or vanilla JS. No providers required!
26 lines (25 loc) • 890 B
TypeScript
import { BiometricAuthAdapter, BiometricAuthOptions, BiometricAuthResult, BiometryType } from '../core/types';
/**
* Electron Adapter for biometric authentication
* Supports:
* - macOS: Touch ID via Electron's systemPreferences API
* - Windows: Windows Hello via WebAuthn API
*/
export declare class ElectronAdapter implements BiometricAuthAdapter {
platform: string;
private windowsHelloAvailable;
constructor();
/**
* Check if Windows Hello is available
*/
private checkWindowsHello;
isAvailable(): Promise<boolean>;
getSupportedBiometrics(): Promise<BiometryType[]>;
/**
* Authenticate using Windows Hello via WebAuthn API
*/
private authenticateWithWindowsHello;
authenticate(options?: BiometricAuthOptions): Promise<BiometricAuthResult>;
deleteCredentials(): Promise<void>;
hasCredentials(): Promise<boolean>;
}