@marvnet/hcaptcha
v1.0.7
Published
Verify hCaptcha token
Downloads
10
Readme
hcaptcha
Original author: vastus
Verify hCaptcha token validity.
Install
yarn add @marvnet/hcaptcha
Usage
import { verify } from "@marvnet/hcaptcha";
const secret: string = 'my hcaptcha secret from hcaptcha.com';
const token: string = 'token from widget';
verify(secret, token)
.then((data) => console.log('success!', data))
.catch(console.error);