We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a993c7 commit 41e5d7eCopy full SHA for 41e5d7e
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "tencent-component-toolkit",
3
- "version": "1.0.9",
+ "version": "1.0.10",
4
"description": "Tencent component toolkit",
5
"main": "src/index.js",
6
"scripts": {
src/baas/cos/index.js
@@ -9,6 +9,12 @@ class Cos {
9
constructor(credentials = {}, region = 'ap-guangzhou') {
10
this.region = region
11
this.credentials = credentials
12
+ if(credentials.token){
13
+ this.credentials.XCosSecurityToken = credentials.token
14
+ }
15
+ if(credentials.Token){
16
+ this.credentials.XCosSecurityToken = credentials.Token
17
18
this.cosClient = new cos(this.credentials)
19
}
20
0 commit comments