Documentation ¶
Index ¶
- Constants
- func Register() core.Module
- type Totp
- func (tp *Totp) Generate(opts totp.GenerateOpts) (*otp.Key, error)
- func (tp *Totp) GenerateCode(secret string, t time.Time) (string, error)
- func (tp *Totp) GenerateCodeCustom(secret string, t time.Time, opts totp.ValidateOpts) (string, error)
- func (tp *Totp) Validate(passcode string, secret string) bool
- func (tp *Totp) ValidateCustom(passcode string, secret string, t time.Time, opts totp.ValidateOpts) (bool, error)
Constants ¶
View Source
const TOTP core.Provide = "TOTP"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Totp ¶
type Totp struct{}
func Inject ¶
func Inject(module *core.DynamicModule) *Totp
func (*Totp) GenerateCode ¶
func (*Totp) GenerateCodeCustom ¶
Click to show internal directories.
Click to hide internal directories.