dozoisch / react-google-recaptcha

Component wrapper for Google reCAPTCHA
MIT License
1.03k stars 142 forks source link

How do you set the name of the action? #172

Open rj-david opened 4 years ago

rj-david commented 4 years ago

Is it possible to set the name of the action so that we can easily see in the recaptcha analytics which actions are being used the most and which actions are generating the most suspicious activities?

hartzis commented 4 years ago

There doesn't appear to be any configuration property for this. Here are the docs: https://developers.google.com/recaptcha/docs/display#configuration

If you find something let us know and/or open a PR :)

rj-david commented 4 years ago

Version 3. Called Actions

https://developers.google.com/recaptcha/docs/display

rj-david commented 4 years ago

Here is the correct link https://developers.google.com/recaptcha/docs/v3#actions

hartzis commented 4 years ago

First off, that's a cool feature i wasn't aware of with 3.

Sadly this library currently uses v2. https://github.com/dozoisch/react-google-recaptcha/blob/d2924d7ddf7030b199c15c371631fd3a0f974f8f/README.md#L7

I've done some investigation into either adding v3 as an option, or fully converting to v3. There's also another open issue for `v3, #124 .

And this new feature gives us more reasons to really look into upgrading.

xSAVIKx commented 1 year ago

The action support is also essential for reCAPTCHA enterprise: https://cloud.google.com/recaptcha-enterprise/docs/actions.

Would be great to add support while enterprise is kinda supported.