2

Trying to send the recaptcha token to a backend service for verification and I need to know the size of the token. Is it a standard size in bytes or is it variable

1 Answers1

2

The generated reCAPTCHA token is not a fixed size in either bytes or number of characters. The length is variable so I would not try to assign it to a fixed size string or buffer.

Cory Kramer
  • 114,268
  • 16
  • 167
  • 218
  • 1
    I'm trying to send it as a header down to a backend service. Just concerned about reaching the server header limit. – newnamewhodis Oct 03 '22 at 22:03
  • 1
    I would strongly suggest you do not pass the token in a header, we have seen many instances of the token exceeding the header length limit. – Cory Kramer Oct 04 '22 at 13:51
  • I am also facing the same issue, reCAPTCHA token char are keep on increasing, since we have char limit validation in body payload, its failing. Currently we set it as 3000 but the token is exceeding that. Any idea what is the max char length of reCAPTCHA token (Enterprise). – Shijith Mohanan May 18 '23 at 19:39