UNPKG

@leancodepl/kratos

Version:

Headless React components library for building Ory Kratos authentication flows

11 lines (10 loc) 416 B
import { ReactNode } from "react"; import { useTotpForm } from "./useTotpForm"; export type TotpFormContextData = { totpForm: ReturnType<typeof useTotpForm>; }; export declare function TotpFormProvider({ children, totpForm, }: { children: ReactNode; totpForm: ReturnType<typeof useTotpForm>; }): import("react/jsx-runtime").JSX.Element; export declare function useTotpFormContext(): TotpFormContextData;