@veap/auth 0.1.8 → 0.1.10
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/README.md +3 -3
- package/dist/session/session.service.js +1 -2
- package/package.json +7 -5
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
[](https://www.npmjs.com/package/@veap/auth)
|
|
3
|
+
[](https://discord.gg/qTkrCwpMW)
|
|
4
4
|
|
|
5
5
|
# @veap/auth
|
|
6
6
|
|
|
@@ -12,7 +12,6 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
12
12
|
};
|
|
13
13
|
import { isIP } from "node:net";
|
|
14
14
|
import { COOKIE_STORE, Inject, Injectable, REQUEST_CONTEXT, } from "@veap/kernel";
|
|
15
|
-
import { addDays } from "date-fns";
|
|
16
15
|
import { augmentSession } from "../common/augment.js";
|
|
17
16
|
import { getAuthRoutes } from "../common/context.js";
|
|
18
17
|
import { performFullUserAugmentation } from "../common/logic.js";
|
|
@@ -157,7 +156,7 @@ let SessionService = class SessionService {
|
|
|
157
156
|
const sessionId = this.tokens.hashToken(token);
|
|
158
157
|
return await this.sessions.create({
|
|
159
158
|
id: sessionId,
|
|
160
|
-
expiresAt: new Date(
|
|
159
|
+
expiresAt: new Date(Date.now() + 7 * 86_400_000),
|
|
161
160
|
userId,
|
|
162
161
|
metadata: flags,
|
|
163
162
|
});
|
package/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veap/auth",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "Authentication, session management, RBAC, and crypto adapters for Veap",
|
|
5
|
-
"
|
|
5
|
+
"author": "Damian Miller",
|
|
6
|
+
"bugs": "https://github.com/veapjs/veap/issues",
|
|
6
7
|
"repository": {
|
|
7
8
|
"type": "git",
|
|
8
|
-
"url": "https://github.com/veapjs/veap
|
|
9
|
+
"url": "https://github.com/veapjs/veap.git",
|
|
10
|
+
"directory": "packages/auth"
|
|
9
11
|
},
|
|
10
12
|
"type": "module",
|
|
11
13
|
"license": "MIT",
|
|
@@ -55,8 +57,8 @@
|
|
|
55
57
|
"@oslojs/binary": "^1.0.0",
|
|
56
58
|
"@oslojs/crypto": "^1.0.1",
|
|
57
59
|
"@oslojs/encoding": "^1.1.0",
|
|
58
|
-
"@veap/database": "0.1.
|
|
59
|
-
"@veap/kernel": "0.2.
|
|
60
|
+
"@veap/database": "0.1.9",
|
|
61
|
+
"@veap/kernel": "0.2.2",
|
|
60
62
|
"bcryptjs": "^3.0.3",
|
|
61
63
|
"date-fns": "^4.4.0",
|
|
62
64
|
"zod": "^3.24.2"
|