capacitor-biometric-authentication
Version:
Framework-agnostic biometric authentication library. Works with React, Vue, Angular, or vanilla JS. No providers required!
18 lines (17 loc) • 666 B
TypeScript
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 getStoredCredentialIds;
private saveCredentialId;
}