@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 CHANGED
@@ -1,6 +1,6 @@
1
- [![CI](https://github.com/veapjs/veap-auth/actions/workflows/CI.yml/badge.svg)](https://github.com/veapjs/veap-auth/actions/workflows/CI.yml)
2
- [![Release](https://github.com/veapjs/veap-auth/actions/workflows/RELEASE.yml/badge.svg)](https://github.com/veapjs/veap-auth/actions/workflows/RELEASE.yml)
3
- [![Version](https://img.shields.io/npm/v/@veap/auth?style=flat&colorA=000000&colorB=000000)](https://www.npmjs.com/package/@veap/auth)
1
+
2
+ [![Version](https://img.shields.io/npm/v/@veap%2Fauth?style=flat-square&color=181717&logo=npm&logoColor=959da5)](https://www.npmjs.com/package/@veap/auth)
3
+ [![Discord](https://img.shields.io/badge/Discord-join-5865F2?style=flat-square&logo=discord&logoColor=959da5)](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(addDays(new Date(), 7)),
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.8",
3
+ "version": "0.1.10",
4
4
  "description": "Authentication, session management, RBAC, and crypto adapters for Veap",
5
- "bugs": "https://github.com/veapjs/veap-auth/issues",
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-auth.git"
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.8",
59
- "@veap/kernel": "0.2.1",
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"