Versions in this module Expand all Collapse all v1 v1.3.0 Sep 12, 2019 Changes in this version + func Generate(opts GenerateOpts) (*otp.Key, error) + type GenerateOpts struct + AccountName string + Algorithm otp.Algorithm + Digits otp.Digits + Issuer string + Secret string + type Validator struct + Counter uint64 + Secret string + Token *yubikey.Token + Use uint64 + func NewValidator(secret string, counter uint64, use uint64) *Validator + func (v *Validator) Validate(passcode string) bool