next-recaptcha-v3
Version:
🤖 Next.js hook to add Google ReCaptcha to your application
11 lines (10 loc) • 402 B
TypeScript
import type { ReCaptchaContextProps } from "./ReCaptchaProvider.js";
export interface useReCaptchaProps extends ReCaptchaContextProps {
executeRecaptcha: (action: string) => Promise<string>;
}
/** React Hook to generate ReCaptcha token
* @example
* const { executeRecaptcha } = useReCaptcha()
*/
declare const useReCaptcha: (reCaptchaKey?: string) => useReCaptchaProps;
export { useReCaptcha };