Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
react-hcaptcha
Advanced tools
Readme
hCaptcha Component Library for ReactJS.
hCaptcha is an easy to use replacement for reCaptcha that helps monetize your website.
Sign up at hCaptcha to get your sitekey today. You need a sitekey to use this captcha solution.
You can install this library via npm with:
npm install react-hcaptcha --save
<your-cool-form>
<hCaptcha :sitekey="**Your sitekey here**" onVerify={this.onVerifyCaptcha}></hCaptcha>
</your-cool-form>
The two required props are the sitekey and root component. The component will automatically include and load the hCaptcha API library and append it to the root component. This is designed for ease of use with the hCaptcha API!
Props include:
The component emits any events related to verification, and expiring. Simply catch these events in the parent component
ie: onVerify
, onExpire
, onError
and handle the events as you choose. The captcha will automatically reset on error, but still emit an error.
Please refer to the demo for examples of basic usage and an invisible Captcha.
FAQs
A React library for hCaptcha
The npm package react-hcaptcha receives a total of 58 weekly downloads. As such, react-hcaptcha popularity was classified as not popular.
We found that react-hcaptcha demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.