Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrOathOTP is returned when the secret is not a valid OATH secret. ErrOathOTP = fmt.Errorf("QR codes can only be generated for OATH OTPs") // ErrType is returned when the secret is not a valid OTP type. ErrType = fmt.Errorf("type assertion failed") )
Functions ¶
func ParseScreen ¶ added in v1.15.6
ParseScreen will attempt to parse all available screen and will look for otpauth QR codes. It returns the first one it has found.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.