Versions in this module Expand all Collapse all v1 v1.0.2 Aug 24, 2019 Changes in this version + var DefaultConfig = &Config + var TokenMismatchError = errors.New("tokens mismatch") + type Config struct + BackoffMinutes time.Duration + MaxFailures int v1.0.1 Sep 11, 2018 Changes in this version type Totp + func (otp *Totp) Secret() string v1.0.0 Apr 24, 2016 Changes in this version + var LockDownError = errors.New("The verification is locked down, because of too many trials.") + type Totp struct + func NewTOTP(account, issuer string, hash crypto.Hash, digits int) (*Totp, error) + func TOTPFromBytes(encryptedMessage []byte, issuer string) (*Totp, error) + func (otp *Totp) OTP() (string, error) + func (otp *Totp) QR() ([]byte, error) + func (otp *Totp) ToBytes() ([]byte, error) + func (otp *Totp) Validate(userCode string) error