@nocobase/auth 2.1.0-beta.22 → 2.1.0-beta.24
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 -1
- package/package.json +7 -7
package/lib/base/auth.js
CHANGED
|
@@ -153,7 +153,7 @@ const _BaseAuth = class _BaseAuth extends import_auth.Auth {
|
|
|
153
153
|
if (tokenStatus === "valid" && Date.now() - iat * 1e3 > tokenPolicy.tokenExpirationTime) {
|
|
154
154
|
tokenStatus = "expired";
|
|
155
155
|
}
|
|
156
|
-
if (
|
|
156
|
+
if (user.passwordChangeTz && iat * 1e3 < user.passwordChangeTz) {
|
|
157
157
|
this.ctx.throw(401, {
|
|
158
158
|
message: this.ctx.t("User password changed, please signin again.", { ns: localeNamespace }),
|
|
159
159
|
code: import_auth.AuthErrorCode.INVALID_TOKEN
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/auth",
|
|
3
|
-
"version": "2.1.0-beta.
|
|
3
|
+
"version": "2.1.0-beta.24",
|
|
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": "2.1.0-beta.
|
|
10
|
-
"@nocobase/cache": "2.1.0-beta.
|
|
11
|
-
"@nocobase/database": "2.1.0-beta.
|
|
12
|
-
"@nocobase/resourcer": "2.1.0-beta.
|
|
13
|
-
"@nocobase/utils": "2.1.0-beta.
|
|
9
|
+
"@nocobase/actions": "2.1.0-beta.24",
|
|
10
|
+
"@nocobase/cache": "2.1.0-beta.24",
|
|
11
|
+
"@nocobase/database": "2.1.0-beta.24",
|
|
12
|
+
"@nocobase/resourcer": "2.1.0-beta.24",
|
|
13
|
+
"@nocobase/utils": "2.1.0-beta.24",
|
|
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": "f77b85530a2d127d9bfe4dca3a26fbb02c1139ba"
|
|
23
23
|
}
|