tencent-login
v0.1.7
Published
Tencent Cloud Login
Downloads
84
Readme
Tencent Login SDK
How to use it?
- Import this SDK in your
package.json
and yournodejs
file, like this:
package.json
...
"dependencies": {
"tencent-login": "^0.1.0",
}
...
nodejs file
const TencentLogin = require('tencent-login')
- User this function:
const login = new TencentLogin()
const result = await login.login()
- When you run this function, you should scan qr code login from wechat, then you could get Tencent Cloud SecretId/Key/Token/Appid. Like this:
{
tencent_secret_id: 'AKIDSH*********bxWrQEh',
tencent_secret_key: '8UJNKUx3*********aL7L6wZ8',
tencent_token: '571b8791702*********2220001',
tencent_appid: 13*********009
}