UNPKG

@leancodepl/kratos

Version:

Headless React components library for building Ory Kratos authentication flows

41 lines 1.54 kB
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/form-core').FormValidateOrFn<{ identifier: string; password: string; }> | undefined, import('@tanstack/form-core').FormValidateOrFn<{ identifier: string; password: string; }> | undefined, import('@tanstack/form-core').FormAsyncValidateOrFn<{ identifier: string; password: string; }> | undefined, import('@tanstack/form-core').FormValidateOrFn<{ identifier: string; password: string; }> | undefined, import('@tanstack/form-core').FormAsyncValidateOrFn<{ identifier: string; password: string; }> | undefined, import('@tanstack/form-core').FormValidateOrFn<{ identifier: string; password: string; }> | undefined, import('@tanstack/form-core').FormAsyncValidateOrFn<{ identifier: string; password: string; }> | undefined, import('@tanstack/form-core').FormValidateOrFn<{ identifier: string; password: string; }> | undefined, import('@tanstack/form-core').FormAsyncValidateOrFn<{ identifier: string; password: string; }> | undefined, import('@tanstack/form-core').FormAsyncValidateOrFn<{ identifier: string; password: string; }> | undefined, unknown>; export {}; //# sourceMappingURL=usePasswordForm.d.ts.map