Tencent Login SDK
How to use it?
- Import this SDK in your
package.json
and yournodejs
file, like this:
package.json
... "dependencies": ...
nodejs file
const TencentLogin =
- User this function:
const login = const result = await 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}