Skip to content

Commit fb83fa1

Browse files
committed
签名错误判断优化
1 parent 9c56f08 commit fb83fa1

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,6 +1,6 @@
11
{
22
"name": "cos-nodejs-sdk-v5",
3-
"version": "2.9.11",
3+
"version": "2.9.12",
44
"description": "cos nodejs sdk v5",
55
"main": "index.js",
66
"types": "types",

sdk/base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3197,7 +3197,7 @@ function getAuthorizationAsync(params, callback) {
31973197
var cb = function (err, AuthData) {
31983198
if (cbDone) return;
31993199
cbDone = true;
3200-
if (AuthData.XCosSecurityToken && !AuthData.SecurityToken) {
3200+
if (AuthData && AuthData.XCosSecurityToken && !AuthData.SecurityToken) {
32013201
AuthData = util.clone(AuthData);
32023202
AuthData.SecurityToken = AuthData.XCosSecurityToken;
32033203
delete AuthData.XCosSecurityToken;

0 commit comments

Comments
 (0)