GithubHelp home page GithubHelp logo

Comments (5)

alialaa avatar alialaa commented on June 3, 2024 1

So apparently reCaptcha enterprise is invisible by default unless you choose otherwise when you create the key. I tried another key with this option checked and it worked but of course only when the size prop is not set to invisible. So I guess you can close the issue but maybe add a note in the docs or something. Thank you!

Screenshot 2024-05-13 at 12 24 43

from react-native-recaptcha-that-works.

douglasjunior avatar douglasjunior commented on June 3, 2024

Sorry, but I don't know much about reCAPTCHA enterprise.

In this library, when we set enterprise={true}, only these changes are set:

const grecaptchaObject = enterprise
? 'window.grecaptcha.enterprise'
: 'window.grecaptcha';
const jsScript = enterprise
? `<script src="https://${recaptchaDomain}/recaptcha/enterprise.js?hl={{lang}}" async defer></script>`
: `<script src="https://${recaptchaDomain}/recaptcha/api.js?hl={{lang}}" async defer></script>`;

I can't say why the others sizes don't work.

from react-native-recaptcha-that-works.

douglasjunior avatar douglasjunior commented on June 3, 2024

The official documentation says that the size is set on the render parameters:

Is exactly this that we do in the render method:

const recaptchaParams = {
sitekey: siteKey,
size,
theme,
callback: onVerify,
'expired-callback': onExpire,
'error-callback': onError,
}
if (action) {
recaptchaParams.action = action;
}
widget = ${grecaptchaObject}.render('recaptcha-container', recaptchaParams);

from react-native-recaptcha-that-works.

douglasjunior avatar douglasjunior commented on June 3, 2024

Nice catch, thank you for the information!

from react-native-recaptcha-that-works.

douglasjunior avatar douglasjunior commented on June 3, 2024

Done!

image

from react-native-recaptcha-that-works.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.