tencent-login

0.1.7 • Public • Published

Tencent Login SDK

How to use it?

  • Import this SDK in your package.json and your nodejs 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
}

Readme

Keywords

none

Package Sidebar

Install

npm i tencent-login

Weekly Downloads

12

Version

0.1.7

License

Apache

Unpacked Size

8.55 kB

Total Files

10

Last publish

Collaborators

  • anycodes