UNPKG

@leancodepl/kratos

Version:

Headless React components library for building Ory Kratos authentication flows

26 lines (25 loc) 1.06 kB
import { OnLoginFlowError } from "../types"; type UseTotpFormProps = { onError?: OnLoginFlowError; onLoginSuccess?: () => void; }; export declare function useTotpForm({ onError, onLoginSuccess }: UseTotpFormProps): import("@tanstack/react-form").ReactFormExtendedApi<{ totp_code: string; }, import("@tanstack/react-form").FormValidateOrFn<{ totp_code: string; }> | undefined, import("@tanstack/react-form").FormValidateOrFn<{ totp_code: string; }> | undefined, import("@tanstack/react-form").FormAsyncValidateOrFn<{ totp_code: string; }> | undefined, import("@tanstack/react-form").FormValidateOrFn<{ totp_code: string; }> | undefined, import("@tanstack/react-form").FormAsyncValidateOrFn<{ totp_code: string; }> | undefined, import("@tanstack/react-form").FormValidateOrFn<{ totp_code: string; }> | undefined, import("@tanstack/react-form").FormAsyncValidateOrFn<{ totp_code: string; }> | undefined, import("@tanstack/react-form").FormAsyncValidateOrFn<{ totp_code: string; }> | undefined, unknown>; export {};