Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeQuery ¶
EncodeQuery is a copy-paste of url.Values.Encode, except it uses %20 instead of + to encode spaces. This is necessary to correctly render spaces in some authenticator apps, like Google Authenticator.
Types ¶
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
Key represents an TOTP or HTOP key.
type OpFunc ¶
type OpFunc func(t *Totp)
func WithAlgorithm ¶
func WithExpiration ¶
func WithSecret ¶
type OtpUrl ¶
Click to show internal directories.
Click to hide internal directories.