UNPKG

@slashid/react

Version:

React SDK for the /id platform

12 lines 415 B
import type { FactorMethod } from "@slashid/slashid"; import { ReactNode } from "react"; type Props = { children: ReactNode; withFactorMethods?: FactorMethod[] | ((userAuthenticationMethods: FactorMethod[]) => boolean); }; /** * Renders the children only when the SDK is ready and the user is authenticated. */ export declare const LoggedIn: React.FC<Props>; export {}; //# sourceMappingURL=index.d.ts.map