@leancodepl/kratos
Version:
Headless React components library for building Ory Kratos authentication flows
13 lines (12 loc) • 439 B
TypeScript
import { ReactNode } from "react";
import { FrontendApi } from "../kratos";
type KratosClientContext = {
kratosClient: FrontendApi;
};
type KratosClientProviderProps = {
children: ReactNode;
api: FrontendApi;
};
export declare function useKratosClientContext(): KratosClientContext;
export declare function KratosClientProvider({ children, api }: KratosClientProviderProps): import("react/jsx-runtime").JSX.Element;
export {};