1.0.5 • Published 8 months ago

google-captcha-hook v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

📦 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
1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago

0.1.0

8 months ago