package
Version:
v0.2.90
Opens a new window with list of versions in this module.
Published: Mar 8, 2024
License: BSD-3-Clause-Clear
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
根据秘钥获取随机数字验证码
secret 秘钥标识
获取生成二维码的规范化字符串
user 标题
secret 秘钥
返回格式:otpauth://totp/<user>?secret=<secret>
验证输入的验证码是否正确
secret 秘钥
code 用户输入的验证码
type Config struct {
LogErrorFunc func(msg string, err error)
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.