Documentation ¶
Index ¶
- func GenerateCode(secret string, counter uint64) (passcode string, err error)
- func GenerateCodeCustom(secret string, counter uint64, opts ValidateOpts) (passcode string, err error)
- func Validate(passcode string, counter uint64, secret string) bool
- func ValidateCodeCustom(passcode string, counter uint64, secret string, opts ValidateOpts) (result bool, err error)
- type ValidateOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCodeCustom ¶
func GenerateCodeCustom(secret string, counter uint64, opts ValidateOpts) (passcode string, err error)
func ValidateCodeCustom ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.