New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

google-captcha-hook

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-captcha-hook

Minimal Invisible google reacaptcha for react ✨

latest
Source
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

Google Captcha Hook

invisible google captcha hook for React & Next.js

📦 Installation

npm i google-captcha-hook

yarn add google-captcha-hook

pnpm add google-captcha-hook

bun i google-captcha-hook

✨ Feature list

  • Typescript support
  • Regenerate Token
  • Super minimal package

📝 Usage

import { useGoogleRecaptcha } from 'google-captcha-hook';

export const App = () => {
  const { token } = useGoogleRecaptcha('your google recaptcha v3 site key');
};

📄 API

in reCaptcha create v3 google recaptcha copy your site key and pass to argument of hook

const { token } = useGoogleRecaptcha(SITE_KEY);
NameTypeDescription
tokenstringgenerated token by google v3 recaptcha
regenerate() => voidregenerate token if it expired or not

FAQs

Package last updated on 27 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts