Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 504 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 504 Bytes

Tencent Cloud Wechat Login

Tencent Cloud Wechat Login Tool.

Usage

Before use, you need create an instance:

import { TencentLogin } from '@tencent-sdk/login';
const tencentLogin = new TencentLogin();

// login
const loginData = await tLogin.login();
console.log('Login Result: ', loginData);

// refresh auth info
const res = await tLogin.refresh(
  loginData.uuid,
  loginData.expired,
  loginData.signature,
  loginData.appid,
);

console.log('Flush Result: ', res);

License

MIT