@nocobase/auth 1.9.34 → 1.9.35
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/auth-manager.js +3 -0
- package/package.json +7 -7
package/lib/auth-manager.js
CHANGED
|
@@ -143,6 +143,9 @@ const _AuthManager = class _AuthManager {
|
|
|
143
143
|
}, "AuthManagerMiddleware");
|
|
144
144
|
}
|
|
145
145
|
getDefaultJWTSecret() {
|
|
146
|
+
if (process.env.UNSAFE_USE_DEFAULT_JWT_SECRET === "true") {
|
|
147
|
+
return process.env.APP_KEY;
|
|
148
|
+
}
|
|
146
149
|
const jwtSecretPath = import_path.default.resolve(process.cwd(), "storage", "apps", "main", "jwt_secret.dat");
|
|
147
150
|
const jwtSecretExists = import_fs.default.existsSync(jwtSecretPath);
|
|
148
151
|
if (jwtSecretExists) {
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/auth",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.35",
|
|
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.9.
|
|
10
|
-
"@nocobase/cache": "1.9.
|
|
11
|
-
"@nocobase/database": "1.9.
|
|
12
|
-
"@nocobase/resourcer": "1.9.
|
|
13
|
-
"@nocobase/utils": "1.9.
|
|
9
|
+
"@nocobase/actions": "1.9.35",
|
|
10
|
+
"@nocobase/cache": "1.9.35",
|
|
11
|
+
"@nocobase/database": "1.9.35",
|
|
12
|
+
"@nocobase/resourcer": "1.9.35",
|
|
13
|
+
"@nocobase/utils": "1.9.35",
|
|
14
14
|
"@types/jsonwebtoken": "^9.0.9",
|
|
15
15
|
"jsonwebtoken": "^9.0.2"
|
|
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": "091cab14c88a8d41f42b45c48621c07137518d26"
|
|
23
23
|
}
|