Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTOTPSecret ¶
func NewTOTPSecret() string
NewTOTPSecret returns a underlying base32 encoded secret. This should only be displayed the first time a user enables 2FA, and should be transmitted over a secure connection. Useful for supporting TOTP clients that don't support QR scanning.
func TOTPQrString ¶
TOTPQrString is the QR code string of the QR code that ccaned by google authenticator.
func VerifyPasscode ¶
VerifyPasscode validates the user provided code.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.