Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatHvURL ¶
func FormatHvURL(details *proton.APIHVDetails) string
func IsHvRequest ¶
func VerifyAndExtractHvRequest ¶
VerifyAndExtractHvRequest expects an error request as input determines whether the given error is a Proton human verification request; if it isn't then it returns -> nil, nil (no details, no error) if it is a HV req. then it tries to parse the json data and verify that the captcha method is included; if either fails -> nil, err if the HV request was successfully decoded and the preconditions were met it returns the hv details -> hvDetails, nil.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.