@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) • 727 B
TypeScript
import { type PasskeyCeremonyDeps, type PasskeyRegistrationDeps } from './authenticate.js';
import { type SubmitClassicFormDeps } from './classic_form.js';
export interface RunPasskeyFlowOptions {
optionsUrl: string;
actionUrl: string;
csrfToken?: string;
returnTo?: string | null;
}
export type RunPasskeyAssertionDeps = PasskeyCeremonyDeps & SubmitClassicFormDeps;
export type RunPasskeyRegistrationDeps = PasskeyRegistrationDeps & SubmitClassicFormDeps;
export declare function runPasskeyAssertion(options: RunPasskeyFlowOptions, deps?: RunPasskeyAssertionDeps): Promise<void>;
export declare function runPasskeyRegistration(options: RunPasskeyFlowOptions, deps?: RunPasskeyRegistrationDeps): Promise<void>;