UNPKG

@leancodepl/kratos

Version:

Headless React components library for building Ory Kratos authentication flows

30 lines 1.27 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/form-core').FormValidateOrFn<{ totp_code: string; }> | undefined, import('@tanstack/form-core').FormValidateOrFn<{ totp_code: string; }> | undefined, import('@tanstack/form-core').FormAsyncValidateOrFn<{ totp_code: string; }> | undefined, import('@tanstack/form-core').FormValidateOrFn<{ totp_code: string; }> | undefined, import('@tanstack/form-core').FormAsyncValidateOrFn<{ totp_code: string; }> | undefined, import('@tanstack/form-core').FormValidateOrFn<{ totp_code: string; }> | undefined, import('@tanstack/form-core').FormAsyncValidateOrFn<{ totp_code: string; }> | undefined, import('@tanstack/form-core').FormValidateOrFn<{ totp_code: string; }> | undefined, import('@tanstack/form-core').FormAsyncValidateOrFn<{ totp_code: string; }> | undefined, import('@tanstack/form-core').FormAsyncValidateOrFn<{ totp_code: string; }> | undefined, unknown>; export {}; //# sourceMappingURL=useTotpForm.d.ts.map