@nestlab/google-recaptcha
Version:
Google recaptcha module for NestJS.
31 lines (30 loc) • 762 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RecaptchaConfigRef = void 0;
class RecaptchaConfigRef {
get valueOf() {
return this.value;
}
constructor(value) {
this.value = value;
}
setSecretKey(secretKey) {
this.value.secretKey = secretKey;
this.value.enterprise = undefined;
return this;
}
setEnterpriseOptions(options) {
this.value.secretKey = undefined;
this.value.enterprise = options;
return this;
}
setScore(score) {
this.value.score = score;
return this;
}
setSkipIf(skipIf) {
this.value.skipIf = skipIf;
return this;
}
}
exports.RecaptchaConfigRef = RecaptchaConfigRef;