@adonis-agora/authkit-react
Version:
Frontend ergonomics over AuthKit for AdonisJS + Inertia + React apps: a typed useAuth() hook, role-gating hooks and gating components.
12 lines (11 loc) • 523 B
TypeScript
import { type ButtonHTMLAttributes, type ReactNode } from 'react';
export interface PasskeyButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick'> {
optionsUrl: string;
verifyUrl: string;
csrfToken?: string;
children?: ReactNode;
errorContent?: ReactNode;
}
export declare function PasskeyButton({ optionsUrl, verifyUrl, csrfToken, children, errorContent, className, ...rest }: PasskeyButtonProps): import("react").DetailedReactHTMLElement<{
className: string;
}, HTMLElement>;