Versions in this module Expand all Collapse all v2 v2.0.4 Nov 11, 2021 Changes in this version + var ErrInvalidSharedSecret error = errors.New("invalid base64 shared secret") + func GenerateTotpCode(sharedSecret string, time time.Time) (string, error) + type Totp struct + Time time.Time + func NewTimedTotp(sharedSecret string, time time.Time) *Totp + func NewTotp(sharedSecret string) *Totp + func (totp *Totp) GenerateCode() (string, error) + func (totp *Totp) SharedSecret() string