Skip to content

Commit 0b0f605

Browse files
author
dfounderliu
committed
fix auth
1 parent aff57a1 commit 0b0f605

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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": "serverless-tencent-tools",
33
"description": "Tencent Cloud Tools For Serverless Framewoek",
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"main": "./index.js",
66
"publishConfig": {
77
"access": "public"

sdk/account/getUserAuthInfo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class GetUserAuthInfo {
2929
const req = http.request(options, function(res) {
3030
res.setEncoding('utf8')
3131
res.on('data', function(chunk) {
32-
resolve(chunk)
32+
resolve(JSON.parse(chunk))
3333
})
3434
})
3535

0 commit comments

Comments
 (0)