I
I
Ivan2019-02-01 16:14:36
reCAPTCHA
Ivan, 2019-02-01 16:14:36

How to get the desired response from reCAPTCHA v3 in react?

Google's instructions say to get a response like
{
"success": true|false, // whether this request was a valid reCAPTCHA token for your site
"score": number // the score for this request (0.0 - 1.0)
" action": string // the action name for this request (important to verify)
"challenge_ts": timestamp, // timestamp of the challenge load (ISO format yyyy-MM-dd'T'HH:mm:ssZZ)
"hostname" : string, // the hostname of the site where the reCAPTCHA was solved
"error-codes": [...] // optional
}
but in the instructions for react it's all about getting a token.
Whether it is necessary to connect the backend is not clear.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question