GoogleAuthenticatorNode
实现Google Authenticator服务端认证
Install / Use
/learn @Rayooo/GoogleAuthenticatorNodeREADME
GoogleAuthenticatorNode
https的服务在2016年12月14日a8ce526的版本上
后端Node
数据库Mysql
两步验证的第三方库 spreakeasy https://github.com/speakeasyjs/speakeasy
第三方二维码生成网站 http://qr.liantu.com/api.php?&w=400&text=TEXT
密码加盐hash,用户创建账户或每次修改密码时,都应该重新生成新的盐值进行加密。
密码加盐hash第三方库 https://github.com/davidwood/node-password-hash
设置token和refreshToken,用每隔一段时间用refreshToken去更换token
用GitHub的WebHook进行自动部署,在util中webHook.js中
GitHubWebHook的第三方库 https://github.com/rvagg/github-webhook-handler
shelljs 执行shell的第三方库 https://www.npmjs.com/package/shelljs
1.数据库建表:
CREATE DATABASE google_auth;
use google_auth;
CREATE TABLE IF NOT EXISTS user( id INT PRIMARY KEY AUTO_INCREMENT, username VARCHAR(255) NOT NULL UNIQUE, create_date TIMESTAMP NULL DEFAULT now(), password TEXT NOT NULL, secret_key TEXT, token TEXT, token_create_time TIMESTAMP )ENGINE=InnoDB DEFAULT CHARSET=utf8;
2.开启服务
npm install
node bin/www
Related Skills
node-connect
352.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.3kCreate 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
352.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
