Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TOTPService ¶
type TOTPService struct {
// contains filtered or unexported fields
}
func NewTOTPService ¶
func NewTOTPService(issuer string) *TOTPService
func (*TOTPService) GenerateSecret ¶
func (s *TOTPService) GenerateSecret(email string) (*TOTPSetup, error)
func (*TOTPService) Validate ¶
func (s *TOTPService) Validate(secret, code string) bool
Click to show internal directories.
Click to hide internal directories.