Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKey ¶
func GenerateKey() (formattedKey string)
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
func NewAuthenticator ¶
func NewAuthenticator(issuer string, accountName string, formattedKey string) *Authenticator
func (*Authenticator) GenerateToken ¶
func (a *Authenticator) GenerateToken() (passcode string)
func (*Authenticator) GenerateTotpUri ¶
func (a *Authenticator) GenerateTotpUri() string
func (*Authenticator) VerifyToken ¶
func (a *Authenticator) VerifyToken(passcode string) bool
Click to show internal directories.
Click to hide internal directories.