@mcaptcha/mcaptcha-api-js

1.0.1 • Public • Published

status-badge


mcaptcha-api-js: Library to interact with with mCaptcha API

This library provides a convenient interface to validate mCaptcha authorization tokens presented by Visitors against your mCaptcha instance.

Install

npm i @mcaptcha/mcaptcha-api-js

Example

let mcaptcha = new MCaptcha(
	"sitekeyfromdashboard",
	"settingsfromdashboardsettingspage",
	"https://mcaptcha.example.org"
);
let res = await mcaptcha.verify("token");
console.log(`verification status: ${res}`);

Package Sidebar

Install

npm i @mcaptcha/mcaptcha-api-js

Homepage

mcaptcha.org

Weekly Downloads

33

Version

1.0.1

License

(MIT OR Apache-2.0)

Unpacked Size

3.83 kB

Total Files

4

Last publish

Collaborators

  • mcaptcha-user
  • realaravinth