Versions in this module Expand all Collapse all v0 v0.1.1 Dec 23, 2023 Changes in this version + 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 struct + Algorithm gotp.Algorithm + Digits gotp.Digits