naystack - v1.5.10
    Preparing search index...

    Function verifyCaptcha

    • Verifies a Cloudflare Turnstile captcha token via the siteverify API.

      Parameters

      • token: string

        The response token from the Turnstile widget on the client.

      • Optionalsecret: string

        Your Turnstile secret key.

      Returns Promise<boolean>

      true if verification succeeded, false otherwise.