@nocobase/auth 0.19.0-alpha.9 → 0.20.0-alpha.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.
@@ -85,8 +85,9 @@ const _AuthManager = class _AuthManager {
85
85
  */
86
86
  middleware() {
87
87
  return async (ctx, next) => {
88
+ var _a;
88
89
  const token = ctx.getBearerToken();
89
- if (token && await ctx.app.authManager.jwt.blacklist.has(token)) {
90
+ if (token && await ((_a = ctx.app.authManager.jwt.blacklist) == null ? void 0 : _a.has(token))) {
90
91
  return ctx.throw(401, ctx.t("token is not available"));
91
92
  }
92
93
  const name = ctx.get(this.options.authKey) || this.options.default;
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@nocobase/auth",
3
- "version": "0.19.0-alpha.9",
3
+ "version": "0.20.0-alpha.2",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./lib/index.js",
7
7
  "types": "./lib/index.d.ts",
8
8
  "dependencies": {
9
- "@nocobase/actions": "0.19.0-alpha.9",
10
- "@nocobase/cache": "0.19.0-alpha.9",
11
- "@nocobase/database": "0.19.0-alpha.9",
12
- "@nocobase/resourcer": "0.19.0-alpha.9",
13
- "@nocobase/utils": "0.19.0-alpha.9",
9
+ "@nocobase/actions": "0.20.0-alpha.2",
10
+ "@nocobase/cache": "0.20.0-alpha.2",
11
+ "@nocobase/database": "0.20.0-alpha.2",
12
+ "@nocobase/resourcer": "0.20.0-alpha.2",
13
+ "@nocobase/utils": "0.20.0-alpha.2",
14
14
  "@types/jsonwebtoken": "^8.5.8",
15
15
  "jsonwebtoken": "^8.5.1"
16
16
  },
@@ -19,5 +19,5 @@
19
19
  "url": "git+https://github.com/nocobase/nocobase.git",
20
20
  "directory": "packages/auth"
21
21
  },
22
- "gitHead": "975f9c58a1995df6a8d7a4d191a0dc4a9769ebc5"
22
+ "gitHead": "6fb885dfc3554e4b0f29e9a7a1eecbbe85d0eebb"
23
23
  }