Documentation ¶
Index ¶
- func GenerateCode(secret string, t time.Time) (passcode string, err error)
- func GenerateCodeCustom(secret string, t time.Time, opts ValidateOpts) (passcode string, err error)
- func GenerateTotpKey(opts GenerateOpts) (key *gotp.Key, err error)
- func ValidateCode(passcode string, secret string) bool
- func ValidateCodeCustom(passcode string, secret string, t time.Time, opts ValidateOpts) (result bool, err error)
- type GenerateOpts
- type ValidateOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCodeCustom ¶
func GenerateTotpKey ¶
func GenerateTotpKey(opts GenerateOpts) (key *gotp.Key, err error)
func ValidateCode ¶
func ValidateCodeCustom ¶
Types ¶
type GenerateOpts ¶
Click to show internal directories.
Click to hide internal directories.