Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}));
this.captchaValidate = null;
this.captchaAttempts += 1;
}
if (this.captchaAttempts >= CAPTCHA_ATTEMPTS) {
throw new AuthorizationError({
message: 'Maximum attempts passage captcha',
code: FAILED_PASSED_CAPTCHA
});
}
const { key, validate } = await this.vk.callbackService.processingCaptcha({
type: CaptchaType.DIRECT_AUTH,
sid,
src
});
this.captchaValidate = validate;
const response = await this.getPermissionsPage({
captcha_sid: sid,
captcha_key: key
});
return response;
}