I'm using the secure token feature with the v2 API in PHP. There is no spec for this algorithm, but slushie kindly reverse engineered the example java code and made a PHP library from it:
https://github.com/slushie/recaptcha-secure-token
Anyway, on to the problem at hand. On dev, it works perfectly fine. I generate a session token, present the form, voila.
On prod, using identical code, I get ERROR: Stoken Expired in the captcha widget as soon as the page loads. I have verified that the token isn't being cached, and is generating a unique token on each page load. I verified that my timezone on dev matches the timezone on prod (this shouldn't even matter should it?). I noticed that they are about 30 seconds apart from each other though.
Does anybody have more details on the secure token algorithm and how the timestamp plays into it? Is there an offset I need to be using? Should the timestamp be matching my user's timestamp?