1.0.1 • Published 7 months ago

recaptcha-v3-verify v1.0.1

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

Recaptcha Verifier

A simple module to verify Google reCAPTCHA responses using Node.js and TypeScript.

Installation

npm install recaptcha-v3-verifier

Usage in CommonJS:

const { verifyRecaptcha } = require('recaptcha-verifier');

(async () => {
  const response = await verifyRecaptcha('your-secret', 'user-response-token');
  console.log(response);
})();

Usage in ESM:

import { verifyRecaptcha } from 'recaptcha-verifier';

(async () => {
  const response = await verifyRecaptcha('your-secret', 'user-response-token');
  console.log(response);
})();

MIT License

Copyright (c) 2024 Your Name

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

1.0.1

7 months ago

1.0.0

7 months ago