reaptcha icon indicating copy to clipboard operation
reaptcha copied to clipboard

support recaptcha v3

Open lavellotron opened this issue 6 years ago • 10 comments

The repo description mentions v2 but isn't this compatible with v3 reCaptcha actually?

lavellotron avatar Feb 01 '19 01:02 lavellotron

@lavellotron Unfortunately not.

I did a little bit of research to answer your question and found that there are few differences in v2 and v3:

  • v3 has a different render API (it needs a render=SITE_KEY query param in the external script load)
  • v3 accepts a action parameter in the execute function
  • v3 execute function returns a promise
  • v3 does not render anything into the DOM (there's no need to render any element by the component)

I'd like to add support for v3 in reaptcha but I'm out of time right now. I'll keep this issue and notes above for easier implementation later on. Of course, if anyone sees this comment and would like to contribute - feel free to do so 😄

jsardev avatar Feb 01 '19 09:02 jsardev

any chance to add the action name feature? that will help us to analyze the verification requests better on v3.

MrComic avatar Aug 01 '20 18:08 MrComic

@MrComic When I'll find time to implement this, I'll try to support every feature from v3.

jsardev avatar Aug 03 '20 07:08 jsardev

Hi there, curious if v3 support will be coming to this package?

jasonwilczak avatar Jun 01 '21 14:06 jasonwilczak

Hi there, curious if v3 support will be coming to this package?

Yes, but I'm still out of time 🙈 I want to implement this and rewrite everything to TypeScript so I need to find a bigger time slot to do this. Certainly not in the nearest months, but it will be there this year for sure.

jsardev avatar Jun 03 '21 09:06 jsardev

Hi @sarneeh Thanks for writing this cool repo. Btw, would you like to let me know when this repo can support V3? it seems like the react-google-recaptcha doesn't provide a good api.

pyon123 avatar Mar 18 '22 10:03 pyon123

@pyon123 I'll be working on it in the next few weeks

jsardev avatar Mar 18 '22 10:03 jsardev

thank you @sarneeh

pyon123 avatar Mar 18 '22 10:03 pyon123

Hi, is there an update on this? It's been a few weeks. ;)

If you made some progress and have a branch in flight that you could push, my team and I might be able to push this over the finish line for you (or with you!). I see that the TypeScript rewrite is complete!

jakerobb avatar Nov 10 '22 21:11 jakerobb

@jakerobb I don't have anything yet. No time or mood to work on it to be honest 😄

And yes, TypeScript rewrite is done!

jsardev avatar Nov 13 '22 06:11 jsardev