Giter Club home page Giter Club logo

react-google-recaptcha-ultimate's Introduction

siberiacancode

🔥 SIBERIACANCODE

We are a group of developers with years of experience. We specialize in development of web applications, servers and browser extensions.

We work with: Frontend:

  • TypeScript, JavaScript (ES6 +)
  • Lerna
  • Gatsby
  • ReactJS, Recompose, Immer, ImmutableJS,
  • Redux, Redux Saga, Redux Thunk, Reselect
  • SCSS / styled-components / LESS /
  • Material UI, Bootstrap, Ant Design
  • Webpack / Gulp
  • Puppeteer, Cypress, Jest + Enzyme, React Testing Library

Backend: -Node.JS / Nest.js / Next.js / Express / KOA / MongoDB / Mongoose / JWT / GraphQL / MySQL

We are ready to make your ideas into refined product. Our goal is high quality and complete customer satisfaction.

react-google-recaptcha-ultimate's People

Contributors

debabin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-google-recaptcha-ultimate's Issues

Callback signatures don't include the token in TypeScript

From the docs:

The name of your callback function, executed when the user submits a successful response. The g-recaptcha-response token is passed to your callback.

The function does in fact hand off the token, but is not in the TypeScript for the callback functions. I end up having to fuss with it a bit.

Also, might be an issue with something I am doing on my end, but if I use the onChange here instead of callback the reCAPTCHA widget will reload back to an empty checkbox after it onChange happens. I will open a separate ticket if I can reproduce that one in a codepen or something.

<GoogleReCaptchaCheckbox
  action={actionName}
  callback={(...args) => {
    const token = (args as any)[0];
    onChange(token, actionName);
  }}
/>

BTW, great job with this project. It looks really great. I hope adoption picks up, definitely higher quality than other tools I have found. Especially the Enterprise support. Cheers!

How to reset it on rerender

Trying to reset recaptcha in Remix using key to rerender.

  const [key, setKey] = useState(0);

  useEffect(() => {
    // Перезагрузка компонента при монтировании
    setKey(prev => prev + 1);
    console.log(key);
  }, []);

...

        <div key={key}>  
        <GoogleReCaptchaProvider siteKey={loaderData.rkey} type="v2-checkbox" >
            <GoogleReCaptchaCheckbox />
        </GoogleReCaptchaProvider>
        </div>
        

But it fails. So if user sends correct recaptcha v2 to server but the form had an error on next form send I have already expired recaptcha result (component not rerendered and resented and form same previously valid key to check twice).

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.