Documentation
¶
Index ¶
Constants ¶
View Source
const (
// QRSize indicates the size of the generated image containing the QR code.
QRSize = 256
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyUri ¶
type KeyUri struct {
Type string `json:"type"` // hotp | totp
Label Label `json:"label"`
Parameters paramsFormatter `json:"parameters"`
}
The KeyUri type holds all the config necessary to generate a valid registration URI for any authenticator app, e.g.: Google Authenticator, Authy, etc.
Click to show internal directories.
Click to hide internal directories.