@arkstack/auth 0.17.16 → 0.17.18
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/dist/index.d.ts +0 -1
- package/dist/index.js +1 -1
- package/dist/setup.d.ts +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { Exception } from "@arkstack/common";
|
|
|
3
3
|
import { Request, RequestSource, Response, ResponseSource, Session } from "@arkstack/http";
|
|
4
4
|
import { Model } from "@arkstack/database";
|
|
5
5
|
import { User as User$1 } from "@app/models/User";
|
|
6
|
-
|
|
7
6
|
//#region src/Contracts/PersonalAccessToken.d.ts
|
|
8
7
|
declare abstract class PersonalAccessToken extends Model {
|
|
9
8
|
[key: string]: any;
|
package/dist/index.js
CHANGED
|
@@ -559,7 +559,7 @@ var Auth = class Auth extends AuthContract {
|
|
|
559
559
|
async touchSession(pat) {
|
|
560
560
|
const now = /* @__PURE__ */ new Date();
|
|
561
561
|
const currentDeviceInfo = SessionDevice.fromRequest(Auth.req);
|
|
562
|
-
const shouldUpdateLastUsedAt = !pat.lastUsedAt || now.getTime() - pat.lastUsedAt.getTime() >
|
|
562
|
+
const shouldUpdateLastUsedAt = !pat.lastUsedAt || now.getTime() - pat.lastUsedAt.getTime() > 3e5;
|
|
563
563
|
const hasDeviceInfo = !!pat.deviceInfo;
|
|
564
564
|
const currentDisplayName = SessionDevice.getDisplayName(currentDeviceInfo);
|
|
565
565
|
const storedDisplayName = SessionDevice.getDisplayName(pat.deviceInfo);
|
package/dist/setup.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arkstack/auth",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Authentication module for Arkstack, providing core authentication and identity features.",
|
|
6
6
|
"homepage": "https://arkstack.toneflix.net/guide/auth",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"jose": "^6.2.3",
|
|
41
41
|
"otpauth": "^9.5.1",
|
|
42
42
|
"ua-parser-js": "^2.0.9",
|
|
43
|
-
"@arkstack/
|
|
44
|
-
"@arkstack/
|
|
43
|
+
"@arkstack/http": "^0.17.18",
|
|
44
|
+
"@arkstack/common": "^0.17.18"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@h3ravel/support": "^2.2.
|
|
48
|
-
"@arkstack/database": "^0.17.
|
|
47
|
+
"@h3ravel/support": "^2.2.7",
|
|
48
|
+
"@arkstack/database": "^0.17.18"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "tsdown --config-loader unrun",
|