Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomSecret ¶
Types ¶
type OTPAuthOption ¶
type OTPType ¶
type OTPType string
func (OTPType) OTPAuthURI ¶
func (otpType OTPType) OTPAuthURI(secret string, digits int, opt OTPAuthOption) string
type TOTP ¶
type TOTP struct { *OTP // contains filtered or unexported fields }
func NewDefaultTOTP ¶
func (*TOTP) NowWithExpiration ¶
Click to show internal directories.
Click to hide internal directories.