Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMissingSecret errors when no secret was provided by the code. ErrMissingSecret = errors.New("no secret was provided") // ErrMissingSitekey errors when no sitekey was provided by the code. ErrMissingSitekey = errors.New("no sitekey was provided") // ErrMissingToken errors when no token was provided by the code. ErrMissingToken = errors.New("no token was provided") )
Functions ¶
Types ¶
type VerifyOpts ¶
type VerifyOpts struct { Secret string `json:"secret"` Sitekey string `json:"key"` //nolint:tagliatelle // `Sitekey` is the correct naming, but API expects `key`. Token string `json:"token"` InstanceURL string `json:"-"` }
VerifyOpts holds all the information that is need to make a verification request.
Click to show internal directories.
Click to hide internal directories.