Skip to content
Corex

RemoteCaptcha

Corex\Captcha\RemoteCaptcha · class · Add-ons layer

A remote provider driver (reCAPTCHA / Turnstile / hCaptcha — all {success} shaped, differing only by verify URL + secret). Posts the token to the provider and passes only on a confirmed success. Fail-closed: a missing secret/token, a transport error, or a non-success response all return false. The secret is never logged.

__construct(string $verifyUrl, string $secret)

Section titled “__construct(string $verifyUrl, string $secret)”

verify(string $token, array $context): bool

Section titled “verify(string $token, array $context): bool”