package
Version:
v1.22.1
Opens a new window with list of versions in this module.
Published: Jul 4, 2024
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
Verify calls Cloudflare Turnstile API to verify token
ErrorCode is a reCaptcha error
Error fulfills the error interface
String fulfills the Stringer interface
type Response struct {
Success bool `json:"success"`
ChallengeTS string `json:"challenge_ts"`
Hostname string `json:"hostname"`
ErrorCodes []ErrorCode `json:"error-codes"`
Action string `json:"login"`
Cdata string `json:"cdata"`
}
Response is the structure of JSON returned from API
Source Files
¶
Click to show internal directories.
Click to hide internal directories.