Versions in this module Expand all Collapse all v1 v1.0.0 Oct 14, 2020 Changes in this version + var ErrInvalidOTP = fmt.Errorf("invalid otp code format") + var Window = 3 + func Authenticate(secret Secret, suppliedOTP string, inUTC bool) (bool, error) + func MakeTotpQrImage(secret Secret, issuer, user string) ([]byte, error) + type Secret []byte + func MakeSecret() Secret + func SecretFromBase32(base32string string) Secret + func (s Secret) Base32() string + func (s Secret) IsValid() bool + func (s Secret) ProvisionURL(issuer, user string) string