UNPKG

@leancodepl/kratos

Version:

Headless React components library for building Ory Kratos authentication flows

16 lines 728 B
import { ReactNode } from 'react'; type RegistrationFlowContext = { registrationFlowId?: string; setRegistrationFlowId: (registrationFlowId: string | undefined) => void; traitsFormCompleted: boolean; setTraitsFormCompleted: (traitsFormCompleted: boolean) => void; traits: Record<string, boolean | string> | undefined; setTraits: (traits: Record<string, boolean | string> | undefined) => void; resetFlow: () => void; }; export declare function RegistrationFlowProvider({ children }: { children: ReactNode; }): import("react/jsx-runtime").JSX.Element; export declare function useRegistrationFlowContext(): RegistrationFlowContext; export {}; //# sourceMappingURL=useRegistrationFlowContext.d.ts.map