@leancodepl/kratos
Version:
Headless React components library for building Ory Kratos authentication flows
35 lines (34 loc) • 1.27 kB
TypeScript
import { OnLoginFlowError } from "../types";
type UsePasswordFormProps = {
onError?: OnLoginFlowError;
onLoginSuccess?: () => void;
};
export declare function usePasswordForm({ onError, onLoginSuccess }: UsePasswordFormProps): import("@tanstack/react-form").ReactFormExtendedApi<{
identifier: string;
password: string;
}, import("@tanstack/react-form").FormValidateOrFn<{
identifier: string;
password: string;
}> | undefined, import("@tanstack/react-form").FormValidateOrFn<{
identifier: string;
password: string;
}> | undefined, import("@tanstack/react-form").FormAsyncValidateOrFn<{
identifier: string;
password: string;
}> | undefined, import("@tanstack/react-form").FormValidateOrFn<{
identifier: string;
password: string;
}> | undefined, import("@tanstack/react-form").FormAsyncValidateOrFn<{
identifier: string;
password: string;
}> | undefined, import("@tanstack/react-form").FormValidateOrFn<{
identifier: string;
password: string;
}> | undefined, import("@tanstack/react-form").FormAsyncValidateOrFn<{
identifier: string;
password: string;
}> | undefined, import("@tanstack/react-form").FormAsyncValidateOrFn<{
identifier: string;
password: string;
}> | undefined, unknown>;
export {};