Skip to content

Commit 3f201fa

Browse files
author
dfounderliu
committed
增加临时密钥
1 parent 90a737d commit 3f201fa

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "tencent-cloud-sdk",
33
"description": "Tencent Cloud SDK For Serverless Framework",
4-
"version": "0.0.3",
4+
"version": "0.0.4",
55
"main": "./index.js",
66
"publishConfig": {
77
"access": "public"

src/client.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ class TencentCloudClient {
2929
},
3030
data
3131
)
32+
const token = this.credentials.token || this.credentials.Token
33+
if (token) {
34+
param.Token = token
35+
}
3236
if (this.credentials.token) {
3337
param.token = this.credentials.token
3438
}

0 commit comments

Comments
 (0)