UNPKG

@adonis-agora/authkit-react

Version:

Frontend ergonomics over AuthKit for AdonisJS + Inertia + React apps: a typed useAuth() hook, role-gating hooks and gating components.

13 lines (12 loc) 397 B
export interface UsePasskeyRegistrationOptions { optionsUrl: string; actionUrl: string; csrfToken?: string; returnTo?: string | null; } export interface UsePasskeyRegistrationResult { run: () => Promise<void>; running: boolean; error: Error | null; } export declare function usePasskeyRegistration(options: UsePasskeyRegistrationOptions): UsePasskeyRegistrationResult;