AuthOTP
golang实现google authencatior服务器RestAPI(密钥生成、OTP生成、OTP认证 )
Install / Use
/learn @gotoolkits/AuthOTPREADME
AuthOTP
golang实现google authencatior服务器RestAPI(密钥生成、OTP生成、OTP认证 )
API 接口
/register
- 用途: 生成私有密钥(base64编码)
- 方法: GET
- 参数:无
- 返回:seed密钥(string)
/otp
- 用途: 通过私有密钥,生成OTP一次性密码
- 方法: POST
- 参数: 请求体JSON格式 ,
skey私有密钥 - 返回: otp密码 (string)
Post Body:
{
"skey":"GI3TSYRWGMZWEZRTMNSGMYRXGFTDSODFGI4DEMRXHE3GKZDBGY2TKM3FMQYWMNDG"
}
/auth
- 用途: 验证OTP一次性密码
- 方法: POST
- 参数: 请求体JSON格式 ,
skey私有密钥otp需认证的密码 - 返回: true/false
Post Body:
{
"skey":"GI3TSYRWGMZWEZRTMNSGMYRXGFTDSODFGI4DEMRXHE3GKZDBGY2TKM3FMQYWMNDG",
"otp":"712257"
}
Related Skills
node-connect
337.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
337.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.2kCommit, push, and open a PR
