@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) • 510 B
TypeScript
import { type ReactNode } from 'react';
export interface AuthenticatedProps {
children: ReactNode;
fallback?: ReactNode;
}
export declare function Authenticated({ children, fallback }: AuthenticatedProps): import("react").FunctionComponentElement<import("react").FragmentProps>;
export interface GuestProps {
children: ReactNode;
fallback?: ReactNode;
}
export declare function Guest({ children, fallback }: GuestProps): import("react").FunctionComponentElement<import("react").FragmentProps>;