UNPKG

capacitor-biometric-authentication

Version:

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

22 lines (21 loc) 788 B
import { BiometricAuthAdapter, BiometricAuthOptions, BiometricAuthResult, BiometryType } from '../core/types'; export declare class WebAdapter implements BiometricAuthAdapter { platform: string; private credentials; private rpId; private rpName; constructor(); isAvailable(): Promise<boolean>; getSupportedBiometrics(): Promise<BiometryType[]>; authenticate(options?: BiometricAuthOptions): Promise<BiometricAuthResult>; deleteCredentials(): Promise<void>; hasCredentials(): Promise<boolean>; private getExistingCredential; private createCredential; private handleError; private generateSessionId; private arrayBufferToBase64; private base64ToArrayBuffer; private getStoredCredentialIds; private saveCredentialId; }