google-recaptcha-v3
Version:
A React library for Google reCAPTCHA integration with both hooks and components supporting v2 and v3
18 lines • 543 B
TypeScript
export interface ReCaptchaResponse {
success: boolean;
challenge_ts: string;
hostname: string;
error_codes?: string[];
}
export interface ReCaptchaOptions {
language?: string;
}
declare const useGoogleRecaptcha: (siteKey: string, action: string, options?: ReCaptchaOptions) => {
token: string | null;
error: string | null;
isLoading: boolean;
refreshToken: () => void;
executeRecaptcha: () => Promise<string | null>;
};
export default useGoogleRecaptcha;
//# sourceMappingURL=useGoogleRecaptcha.d.ts.map