Versions in this module Expand all Collapse all v0 v0.4.0 Jan 10, 2022 Changes in this version + const HOTPDefaultLeeway + const RandomKeyLength + const TOTPDefaultDelay + const TOTPDefaultPeriod + type ErrorInvalidKey struct + func (eik ErrorInvalidKey) Error() string + type HOTP struct + Algorithm config.HmacAlgorithm + Counter uint64 + Key string + Leeway uint64 + Length config.Length + func (h *HOTP) AsUrlValues(issuer string) url.Values + func (h *HOTP) Generate() (string, error) + func (h *HOTP) KeyUri(accountName, issuer string) *authenticator.KeyUri + func (h *HOTP) Validate(token string) (bool, error) + type TOTP struct + Algorithm config.HmacAlgorithm + Delay int + Key string + Length config.Length + Period int + func (t *TOTP) AsUrlValues(issuer string) url.Values + func (t *TOTP) Generate() (string, error) + func (t *TOTP) KeyUri(accountName, issuer string) *authenticator.KeyUri + func (t *TOTP) Validate(token string) (bool, error)