Versions in this module Expand all Collapse all v0 v0.0.1 Feb 22, 2021 Changes in this version + var ErrHOTPOptionIsNil = errors.New("hotp option is nil") + func GeneratePasscode(secret string, counter uint64) (string, error) + func GeneratePasscodeWithOption(secret string, counter uint64, opt *Option) (string, error) + func Validate(passcode string, secret string, counter uint64) (bool, error) + func ValidateWithOption(passcode string, secret string, counter uint64, opt *Option) (bool, error) + type Option struct + func NewOption() *Option + func (opt *Option) SetAlgorithm(a otpauth.Algorithm) error + func (opt *Option) SetDigits(d otpauth.Digits) error