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.
captcha-verifer
Advanced tools
Readme
Verification your ReCaptcha or HCaptcha is easy
npm i captcha-verifer
const Captcha = require('captcha-verifer');
Captcha.verifer({
type: 'recaptcha', // Required (recaptcha or hcaptcha)
secretKey: 'superSecret', // Required
token: 'TOKEN (Captcha response)', // Required
ip: '47.16.0.0' // Optional
})
.then((captcha) => {
if (!captcha.success) return; // Captcha not solved
/* All good. There is your super code! */
})
.catch((e) => console.log(e));
Or
(async () => {
try {
const captcha = await Captcha.verifer({
type: 'hcaptcha', // Required (recaptcha or hcaptcha)
secretKey: 'superSecret', // Required
token: 'TOKEN (Captcha response)', // Required
ip: '47.16.0.0' // Optional
});
if (!captcha.success) return; // Captcha not solved
/* Your perfect code here */
} catch (e) {
console.log(e);
}
})();
You can also verify recaptcha 3
Captcha.verifer({
type: 'recaptcha', // Required (recaptcha or hcaptcha)
secretKey: 'superSecret', // Required
token: 'TOKEN (Captcha response)', // Required
ip: '47.16.0.0' //Optional
})
.then((captcha) => {
if (!captcha.success || captcha.score <= 0.3) return; // Captcha not solved
/* Pefect. Go ahead */
})
.catch((e) => console.log(e));
FAQs
Verification your ReCaptcha or HCaptcha is easy
The npm package captcha-verifer receives a total of 40 weekly downloads. As such, captcha-verifer popularity was classified as not popular.
We found that captcha-verifer 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.