serverless-tencent-auth-tool

2.0.1 • Public • Published

使用方法

腾讯云相关的在Components中使用:

在Pacakge中导入:

"serverless-tencent-auth-tool": "^0.0.5"

在项目代码中:

const tencentAuth = require('serverless-tencent-auth-tool')
const auth = new tencentAuth()
this.context.credentials.tencent = this.context.credentials
  ? await auth.doAuth(this.context.credentials)
  : await auth.doAuth(this.context.instance.state.status)

系统会根据需求自动进行一键登录/获取AppId以及判断是否已经实名认证

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.111latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.111
2.0.00
1.0.18401
1.0.170
1.0.160
1.0.150
1.0.140
1.0.130
1.0.120
1.0.110
1.0.100
1.0.91
1.0.80
1.0.70
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00
0.0.70
0.0.60
0.0.50
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i serverless-tencent-auth-tool

Weekly Downloads

413

Version

2.0.1

License

Apache

Unpacked Size

11.1 kB

Total Files

10

Last publish

Collaborators

  • anycodes