hv

package
v3.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatHvURL

func FormatHvURL(details *proton.APIHVDetails) string

func IsHvRequest

func IsHvRequest(err error) bool

func VerifyAndExtractHvRequest

func VerifyAndExtractHvRequest(err error) (*proton.APIHVDetails, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL