Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InvalidToken = errors.New("invalid mfa token")
InvalidToken indicates the case where the token validation has failed.
Functions ¶
This section is empty.
Types ¶
type MFA ¶
type MFA struct {
// contains filtered or unexported fields
}
func (*MFA) Activate ¶
Activate set the mfa as active and store it with the StoreActive function provided
func (*MFA) Deactivate ¶
Deactivate set the mfa as deactivated, remove the mfa secret, store it with the StoreActive and StoreSecret functions provided
func (*MFA) GenerateSecret ¶
GenerateSecret generates a new user mfa secret and store it with the StoreSecret function provided
Click to show internal directories.
Click to hide internal directories.