@nocobase/auth 1.6.0-alpha.8 → 1.6.0-beta.1
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/lib/base/auth.js +1 -3
- package/package.json +7 -7
package/lib/base/auth.js
CHANGED
|
@@ -102,9 +102,7 @@ const _BaseAuth = class _BaseAuth extends import_auth.Auth {
|
|
|
102
102
|
try {
|
|
103
103
|
user = await this.validate();
|
|
104
104
|
} catch (err) {
|
|
105
|
-
this.ctx.throw(err.status || 401, err.message
|
|
106
|
-
...err
|
|
107
|
-
});
|
|
105
|
+
this.ctx.throw(err.status || 401, err.message);
|
|
108
106
|
}
|
|
109
107
|
if (!user) {
|
|
110
108
|
this.ctx.throw(401, "Unauthorized");
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/auth",
|
|
3
|
-
"version": "1.6.0-
|
|
3
|
+
"version": "1.6.0-beta.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"main": "./lib/index.js",
|
|
7
7
|
"types": "./lib/index.d.ts",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@nocobase/actions": "1.6.0-
|
|
10
|
-
"@nocobase/cache": "1.6.0-
|
|
11
|
-
"@nocobase/database": "1.6.0-
|
|
12
|
-
"@nocobase/resourcer": "1.6.0-
|
|
13
|
-
"@nocobase/utils": "1.6.0-
|
|
9
|
+
"@nocobase/actions": "1.6.0-beta.1",
|
|
10
|
+
"@nocobase/cache": "1.6.0-beta.1",
|
|
11
|
+
"@nocobase/database": "1.6.0-beta.1",
|
|
12
|
+
"@nocobase/resourcer": "1.6.0-beta.1",
|
|
13
|
+
"@nocobase/utils": "1.6.0-beta.1",
|
|
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": "
|
|
22
|
+
"gitHead": "69a79d1ed9660beb14ee956ec634f0c6d142acfa"
|
|
23
23
|
}
|