UNPKG

capacitor-biometric-authentication

Version:

Framework-agnostic biometric authentication library. Works with React, Vue, Angular, or vanilla JS. No providers required!

13 lines (12 loc) 530 B
import { BiometricAuthAdapter, BiometricAuthOptions, BiometricAuthResult, BiometryType } from '../core/types'; export declare class ElectronAdapter implements BiometricAuthAdapter { platform: string; constructor(); isAvailable(): Promise<boolean>; getSupportedBiometrics(): Promise<BiometryType[]>; authenticate(options?: BiometricAuthOptions): Promise<BiometricAuthResult>; deleteCredentials(): Promise<void>; hasCredentials(): Promise<boolean>; private mapError; private generateSessionId; }