@nocobase/auth 1.6.0-alpha.7 → 1.6.0-alpha.8
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 +3 -1
- package/package.json +7 -7
package/lib/base/auth.js
CHANGED
|
@@ -102,7 +102,9 @@ 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
|
|
105
|
+
this.ctx.throw(err.status || 401, err.message, {
|
|
106
|
+
...err
|
|
107
|
+
});
|
|
106
108
|
}
|
|
107
109
|
if (!user) {
|
|
108
110
|
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-alpha.
|
|
3
|
+
"version": "1.6.0-alpha.8",
|
|
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-alpha.
|
|
10
|
-
"@nocobase/cache": "1.6.0-alpha.
|
|
11
|
-
"@nocobase/database": "1.6.0-alpha.
|
|
12
|
-
"@nocobase/resourcer": "1.6.0-alpha.
|
|
13
|
-
"@nocobase/utils": "1.6.0-alpha.
|
|
9
|
+
"@nocobase/actions": "1.6.0-alpha.8",
|
|
10
|
+
"@nocobase/cache": "1.6.0-alpha.8",
|
|
11
|
+
"@nocobase/database": "1.6.0-alpha.8",
|
|
12
|
+
"@nocobase/resourcer": "1.6.0-alpha.8",
|
|
13
|
+
"@nocobase/utils": "1.6.0-alpha.8",
|
|
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": "f7ab757a5d7fb723c96bc9c1340291e4deec03ea"
|
|
23
23
|
}
|