@cloudbase/auth 2.26.0 → 2.26.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/auth",
3
- "version": "2.26.0",
3
+ "version": "2.26.2",
4
4
  "description": "cloudbase javascript sdk auth componets",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -32,14 +32,14 @@
32
32
  "license": "Apache-2.0",
33
33
  "dependencies": {
34
34
  "@cloudbase/adapter-wx_mp": "^1.3.1",
35
- "@cloudbase/oauth": "2.26.0",
36
- "@cloudbase/utilities": "2.26.0"
35
+ "@cloudbase/oauth": "2.26.2",
36
+ "@cloudbase/utilities": "2.26.2"
37
37
  },
38
38
  "devDependencies": {
39
- "@cloudbase/types": "2.26.0",
39
+ "@cloudbase/types": "2.26.2",
40
40
  "@types/node": "^22.1.0",
41
41
  "terser-webpack-plugin": "^3.0.2",
42
42
  "webpack-bundle-analyzer": "^4.9.1"
43
43
  },
44
- "gitHead": "48764fb5aa33114d65b3607ab97cc95be3f558cc"
44
+ "gitHead": "af397dd45339057868b98ac09c417d352e56a217"
45
45
  }
package/src/adapter.ts CHANGED
@@ -180,6 +180,7 @@ const dealUserAdapter = (config: AuthOptions, adapter: SDKAdapterInterface) => {
180
180
  const reqClassParams = {
181
181
  timeout: 10000,
182
182
  restrictedMethods: ['get', 'post', 'upload', 'download', 'request'],
183
+ auth: config.auth,
183
184
  }
184
185
  const adapterReq = new adapter.reqClass(reqClassParams)
185
186
  data.baseRequest = async function (url: string, options?: { method?: string; [key: string]: any }) {