react-passkey-pro
Version:
🔐 The most comprehensive React library for WebAuthn passkey authentication. Drop-in components, TypeScript support, and zero dependencies. Secure, fast, and developer-friendly.
19 lines • 798 B
TypeScript
import React from 'react';
import type { PasskeyRegistrationOptions, PasskeyAuthenticationOptions } from '../types';
export interface PasskeyButtonProps {
mode: 'register' | 'authenticate';
children?: React.ReactNode;
className?: string;
style?: React.CSSProperties;
disabled?: boolean;
variant?: 'default' | 'primary' | 'secondary' | 'outline' | 'minimal';
size?: 'small' | 'medium' | 'large';
registrationOptions?: Omit<PasskeyRegistrationOptions, 'user'> & {
user?: PasskeyRegistrationOptions['user'];
};
authenticationOptions?: PasskeyAuthenticationOptions;
onSuccess?: (result: any) => void;
onError?: (error: Error) => void;
}
export declare const PasskeyButton: React.FC<PasskeyButtonProps>;
//# sourceMappingURL=PasskeyButton.d.ts.map