UNPKG

node-recaptcha-v3

Version:

A Node.js library for verifying Google reCAPTCHA v3 tokens in your applications.

13 lines (12 loc) 433 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ReCaptchaV3Exception = void 0; const constants_1 = require("../constants"); class ReCaptchaV3Exception extends Error { constructor(message, statusCode = constants_1.FORBIDDEN) { super(message); this.name = 'reCAPTCHA_EXCEPTION'; this.statusCode = statusCode; } } exports.ReCaptchaV3Exception = ReCaptchaV3Exception;