Versions in this module Expand all Collapse all v1 v1.0.1 Jun 19, 2023 v1.0.0 May 24, 2023 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(otpBytes []byte) (*Totp, error) + func (otp *Totp) OTP() (string, error) + func (otp *Totp) QR() ([]byte, error) + func (otp *Totp) Secret() string + func (otp *Totp) ToBytes() ([]byte, error) + func (otp *Totp) Url() (string, error) + func (otp *Totp) Validate(userCode string) error