@tachybase/auth 1.2.9 → 1.2.11

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.
Files changed (2) hide show
  1. package/lib/base/auth.js +0 -6
  2. package/package.json +6 -6
package/lib/base/auth.js CHANGED
@@ -124,12 +124,6 @@ const _BaseAuth = class _BaseAuth extends import_auth.Auth {
124
124
  }
125
125
  }
126
126
  const tokenPolicy = await this.tokenController.getConfig();
127
- if (signInTime && Date.now() - signInTime > tokenPolicy.sessionExpirationTime) {
128
- this.ctx.throw(401, {
129
- message: this.ctx.t("Your session has expired. Please sign in again.", { ns: localeNamespace }),
130
- code: import_auth.AuthErrorCode.EXPIRED_SESSION
131
- });
132
- }
133
127
  if (tokenStatus === "valid" && Date.now() - iat * 1e3 > tokenPolicy.tokenExpirationTime) {
134
128
  tokenStatus = "expired";
135
129
  }
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@tachybase/auth",
3
- "version": "1.2.9",
3
+ "version": "1.2.11",
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
9
  "jsonwebtoken": "^8.5.1",
10
- "@tachybase/cache": "1.2.9",
11
- "@tachybase/database": "1.2.9",
12
- "@tachybase/resourcer": "1.2.9",
13
- "@tachybase/actions": "1.2.9",
14
- "@tachybase/utils": "1.2.9"
10
+ "@tachybase/actions": "1.2.11",
11
+ "@tachybase/database": "1.2.11",
12
+ "@tachybase/resourcer": "1.2.11",
13
+ "@tachybase/cache": "1.2.11",
14
+ "@tachybase/utils": "1.2.11"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@types/jsonwebtoken": "^8.5.9",