Skip to content

Commit 200e5bd

Browse files
author
dfounderliu
committed
fix auth
1 parent 2b2d65c commit 200e5bd

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "serverless-tencent-scf",
3-
"version": "0.1.22",
3+
"version": "0.1.24",
44
"description": "Provider plugin for the Serverless Framework v1.x which adds support for Tencent Cloud Functions.",
55
"main": "index.js",
66
"author": "Tencent Cloud, Inc.",

provider/tencentProvider.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -290,14 +290,12 @@ class TencentProvider {
290290
}
291291
})
292292
// From cam to getting appid
293-
if (!this.options.credentials.tencent_appid) {
294-
const appid = await this.getAppid({
295-
SecretId: this.options.credentials.tencent_secret_id,
296-
SecretKey: this.options.credentials.tencent_secret_key
297-
})
298-
this.options.credentials.tencent_appid = appid.AppId
299-
this.options.credentials.tencent_owneruin = appid.OwnerUin
300-
}
293+
const appid = await this.getAppid({
294+
SecretId: this.options.credentials.tencent_secret_id,
295+
SecretKey: this.options.credentials.tencent_secret_key
296+
})
297+
this.options.credentials.tencent_appid = appid.AppId
298+
this.options.credentials.tencent_owneruin = appid.OwnerUin
301299
} catch (e) {}
302300
return
303301
}

0 commit comments

Comments
 (0)