Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateOtpauthURL ¶
func GenerateOtpauthURL(opt *OtpauthOptions) (string, error)
func GenerateSecretASCII ¶
Types ¶
type GeneratedSecret ¶
type GeneratedSecret struct {
Ascii string `json:"ascii,omitempty"`
Hex string `json:"hex,omitempty"`
Base32 string `json:"base32,omitempty"`
QrCodeAscii string `json:"qr_code_ascii,omitempty"`
QrCodeHex string `json:"qr_code_hex,omitempty"`
QrCodeBase32 string `json:"qr_code_base32,omitempty"`
GoogleAuthQR string `json:"google_auth_qr,omitempty"`
OtpAuthQR string `json:"otp_auth_qr,omitempty"`
OtpType string `json:"otp_type,omitempty"`
}
func GenerateSecret ¶
func GenerateSecret(opt *Options) (*GeneratedSecret, error)
Click to show internal directories.
Click to hide internal directories.