JS client for server-side usage of Private Captcha API
npm install @private-captcha/private-captcha-js !CI
JavaScript client for server-side Private Captcha verification.
Please check the official documentation for the in-depth and up-to-date information.
- Install private-captcha-js npm package
``bash`
npm install private-captcha-js
verify()
- Instantiate the client and use method `
javascript`
import { createClient } from 'private-captcha-js';
const client = createClient({ apiKey: 'your-api-key' });
const result = await client.verify({ solution: 'captcha-solution-from-client' });
if (result.ok()) {
console.log('Captcha verified!');
}
client.middleware()` method
- Use Express.js middleware using
This project is licensed under the MIT License - see the LICENSE file for details.
For issues with this Javascript client, please open an issue on GitHub.
For Private Captcha service questions, visit privatecaptcha.com.