captchahandler
v1.0.0
Published
Simple client SDK for a Captcha Handler API
Downloads
94
Maintainers
Readme
captchahandler SDK
Client SDK for your Captcha Handler API.
Base URL is fixed to:
https://captchahandler.rs-st.ch
Install
npm install captchahandlerUsage
import captchahandler from "captchahandler";
const created = await captchahandler.create("https://your-app.com/done");
const status = await captchahandler.validate(created.sessionId);Complete Validation (optional)
If you already have captcha tokens and want to mark completed:
await captchahandler.validate(created.sessionId, {
complete: true,
sessionToken: "...",
turnstileToken: "...",
friendlyToken: "...",
});Node < 18
Pass your own fetch implementation:
import fetch from "node-fetch";
import captchahandler from "captchahandler";
captchahandler.configure({ fetch });