CAPTCHAFORUM
Administrator
Little wrapper for rucaptcha API
Create instance
or
Solve a google recaptcha
or
Solve a google recaptcha v3
Documentation https://githubmemory.com/repo/koteezy/js-rucaptcha
Create instance
Code:
const rc = ruCaptcha.create({
key: null, // Required: Your api key.
delay: 1000, // Not required|Default: 1000
debug: false, // Not required|Default: false
})
new ruCaptcha({...})
Solve a google recaptcha
Code:
try {
const captcha = await rc.google('google site key', 'page url')
} catch (err) => {
console.log(err.toString());
}
Code:
rc.google('google site key', 'page url')
.then(captcha => {...})
.catch(err => {...})
Solve a google recaptcha v3
Code:
try {
const captcha = await rc.google('google site key', 'page url', {
user_score: '0.4',
version: 'v3'
})
} catch (err) => {
console.log(err.toString());
}
Documentation https://githubmemory.com/repo/koteezy/js-rucaptcha