@veloxts/auth 0.6.26 → 0.6.29

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/CHANGELOG.md ADDED
@@ -0,0 +1,583 @@
1
+ # @veloxts/auth
2
+
3
+ ## 0.6.29
4
+
5
+ ### Patch Changes
6
+
7
+ - add multi-tenancy and PostgreSQL support - test and lint fix
8
+ - Updated dependencies
9
+ - @veloxts/core@0.6.29
10
+ - @veloxts/router@0.6.29
11
+
12
+ ## 0.6.28
13
+
14
+ ### Patch Changes
15
+
16
+ - add multi-tenancy support and postgresql database
17
+ - Updated dependencies
18
+ - @veloxts/core@0.6.28
19
+ - @veloxts/router@0.6.28
20
+
21
+ ## 0.6.27
22
+
23
+ ### Patch Changes
24
+
25
+ - chore: add GUIDE, LICENSE and CHANGELOG.md to npm files
26
+ - Updated dependencies
27
+ - @veloxts/core@0.6.27
28
+ - @veloxts/router@0.6.27
29
+
30
+ ## 0.6.26
31
+
32
+ ### Patch Changes
33
+
34
+ - docs(mcp): add README and GUIDE, docs(web): simplify README and create concise GUIDE
35
+ - Updated dependencies
36
+ - @veloxts/core@0.6.26
37
+ - @veloxts/router@0.6.26
38
+
39
+ ## 0.6.25
40
+
41
+ ### Patch Changes
42
+
43
+ - docs(create): add guide for React Server Components setup
44
+ - Updated dependencies
45
+ - @veloxts/core@0.6.25
46
+ - @veloxts/router@0.6.25
47
+
48
+ ## 0.6.24
49
+
50
+ ### Patch Changes
51
+
52
+ - clarify installation paths and package contents
53
+ - Updated dependencies
54
+ - @veloxts/core@0.6.24
55
+ - @veloxts/router@0.6.24
56
+
57
+ ## 0.6.23
58
+
59
+ ### Patch Changes
60
+
61
+ - add defineContract for improved type inference DX
62
+ - Updated dependencies
63
+ - @veloxts/core@0.6.23
64
+ - @veloxts/router@0.6.23
65
+
66
+ ## 0.6.22
67
+
68
+ ### Patch Changes
69
+
70
+ - support {method, path} route entry format
71
+ - Updated dependencies
72
+ - @veloxts/core@0.6.22
73
+ - @veloxts/router@0.6.22
74
+
75
+ ## 0.6.21
76
+
77
+ ### Patch Changes
78
+
79
+ - separate schemas from procedures for browser-safe import
80
+ - Updated dependencies
81
+ - @veloxts/core@0.6.21
82
+ - @veloxts/router@0.6.21
83
+
84
+ ## 0.6.20
85
+
86
+ ### Patch Changes
87
+
88
+ - add Fastify ecosystem stubs and debuglog to util
89
+ - Updated dependencies
90
+ - @veloxts/core@0.6.20
91
+ - @veloxts/router@0.6.20
92
+
93
+ ## 0.6.19
94
+
95
+ ### Patch Changes
96
+
97
+ - restore dotenv stub for browser compatibility
98
+ - Updated dependencies
99
+ - @veloxts/core@0.6.19
100
+ - @veloxts/router@0.6.19
101
+
102
+ ## 0.6.18
103
+
104
+ ### Patch Changes
105
+
106
+ - add node:fs/promises stub and fix esbuild plugin
107
+ - Updated dependencies
108
+ - @veloxts/core@0.6.18
109
+ - @veloxts/router@0.6.18
110
+
111
+ ## 0.6.17
112
+
113
+ ### Patch Changes
114
+
115
+ - remove optimizeDeps.exclude to fix CJS/ESM interop
116
+ - Updated dependencies
117
+ - @veloxts/core@0.6.17
118
+ - @veloxts/router@0.6.17
119
+
120
+ ## 0.6.16
121
+
122
+ ### Patch Changes
123
+
124
+ - add stubs for Fastify ecosystem packages
125
+ - Updated dependencies
126
+ - @veloxts/core@0.6.16
127
+ - @veloxts/router@0.6.16
128
+
129
+ ## 0.6.15
130
+
131
+ ### Patch Changes
132
+
133
+ - implement three-layer Node.js stubbing for Vite
134
+ - Updated dependencies
135
+ - @veloxts/core@0.6.15
136
+ - @veloxts/router@0.6.15
137
+
138
+ ## 0.6.14
139
+
140
+ ### Patch Changes
141
+
142
+ - stub dotenv as virtual module instead of process shims
143
+ - Updated dependencies
144
+ - @veloxts/core@0.6.14
145
+ - @veloxts/router@0.6.14
146
+
147
+ ## 0.6.13
148
+
149
+ ### Patch Changes
150
+
151
+ - add process.argv stub for dotenv browser compatibility
152
+ - Updated dependencies
153
+ - @veloxts/core@0.6.13
154
+ - @veloxts/router@0.6.13
155
+
156
+ ## 0.6.12
157
+
158
+ ### Patch Changes
159
+
160
+ - Fixes the "process is not defined" error from dotenv
161
+ - Updated dependencies
162
+ - @veloxts/core@0.6.12
163
+ - @veloxts/router@0.6.12
164
+
165
+ ## 0.6.11
166
+
167
+ ### Patch Changes
168
+
169
+ - add Vite plugin for Node.js module stubs
170
+ - Updated dependencies
171
+ - @veloxts/core@0.6.11
172
+ - @veloxts/router@0.6.11
173
+
174
+ ## 0.6.10
175
+
176
+ ### Patch Changes
177
+
178
+ - use import() type syntax for AppRouter
179
+ - Updated dependencies
180
+ - @veloxts/core@0.6.10
181
+ - @veloxts/router@0.6.10
182
+
183
+ ## 0.6.9
184
+
185
+ ### Patch Changes
186
+
187
+ - isolate auth procedures from database imports
188
+ - Updated dependencies
189
+ - @veloxts/core@0.6.9
190
+ - @veloxts/router@0.6.9
191
+
192
+ ## 0.6.8
193
+
194
+ ### Patch Changes
195
+
196
+ - prevent dotenv from leaking into browser bundle
197
+ - Updated dependencies
198
+ - @veloxts/core@0.6.8
199
+ - @veloxts/router@0.6.8
200
+
201
+ ## 0.6.7
202
+
203
+ ### Patch Changes
204
+
205
+ - better-sqlite3 versions mismatch fix
206
+ - Updated dependencies
207
+ - @veloxts/core@0.6.7
208
+ - @veloxts/router@0.6.7
209
+
210
+ ## 0.6.6
211
+
212
+ ### Patch Changes
213
+
214
+ - ensure the web app never imports server-side code paths
215
+ - Updated dependencies
216
+ - @veloxts/core@0.6.6
217
+ - @veloxts/router@0.6.6
218
+
219
+ ## 0.6.5
220
+
221
+ ### Patch Changes
222
+
223
+ - move @prisma/client-runtime-utils to root package.json
224
+ - Updated dependencies
225
+ - @veloxts/core@0.6.5
226
+ - @veloxts/router@0.6.5
227
+
228
+ ## 0.6.4
229
+
230
+ ### Patch Changes
231
+
232
+ - add @prisma/client-runtime-utils dependency
233
+ - Updated dependencies
234
+ - @veloxts/core@0.6.4
235
+ - @veloxts/router@0.6.4
236
+
237
+ ## 0.6.3
238
+
239
+ ### Patch Changes
240
+
241
+ - Add workspaces field to root package.json template + Fix Prisma ESM/CJS import for Node.js v24
242
+ - Updated dependencies
243
+ - @veloxts/core@0.6.3
244
+ - @veloxts/router@0.6.3
245
+
246
+ ## 0.6.2
247
+
248
+ ### Patch Changes
249
+
250
+ - add server actions, removed some deprecated and other chore
251
+ - Updated dependencies
252
+ - @veloxts/core@0.6.2
253
+ - @veloxts/router@0.6.2
254
+
255
+ ## 0.6.1
256
+
257
+ ### Patch Changes
258
+
259
+ - route groups for file-based routing; add dynamic route support with [param] segments
260
+ - Updated dependencies
261
+ - @veloxts/core@0.6.1
262
+ - @veloxts/router@0.6.1
263
+
264
+ ## 0.6.0
265
+
266
+ ### Minor Changes
267
+
268
+ - RSC streaming, dynamic routes, Vinxi integration
269
+
270
+ ### Patch Changes
271
+
272
+ - Updated dependencies
273
+ - @veloxts/core@0.6.0
274
+ - @veloxts/router@0.6.0
275
+
276
+ ## 0.5.0
277
+
278
+ ### Minor Changes
279
+
280
+ - Auto-register procedures + inject Prisma models feature
281
+
282
+ ### Patch Changes
283
+
284
+ - Updated dependencies
285
+ - @veloxts/core@0.5.0
286
+ - @veloxts/router@0.5.0
287
+
288
+ ## 0.4.21
289
+
290
+ ### Patch Changes
291
+
292
+ - format Prisma default values correctly by type
293
+ - Updated dependencies
294
+ - @veloxts/core@0.4.21
295
+ - @veloxts/router@0.4.21
296
+
297
+ ## 0.4.20
298
+
299
+ ### Patch Changes
300
+
301
+ - import consolidation: update import paths for `@veloxts/velox`
302
+ - Updated dependencies
303
+ - @veloxts/core@0.4.20
304
+ - @veloxts/router@0.4.20
305
+
306
+ ## 0.4.19
307
+
308
+ ### Patch Changes
309
+
310
+ - update default dev server port to 3030
311
+ - Updated dependencies
312
+ - @veloxts/core@0.4.19
313
+ - @veloxts/router@0.4.19
314
+
315
+ ## 0.4.18
316
+
317
+ ### Patch Changes
318
+
319
+ - introduce interactive field menu and templates for resource generation
320
+ - Updated dependencies
321
+ - @veloxts/core@0.4.18
322
+ - @veloxts/router@0.4.18
323
+
324
+ ## 0.4.17
325
+
326
+ ### Patch Changes
327
+
328
+ - add interactive field prompts for resource generation
329
+ - Updated dependencies
330
+ - @veloxts/core@0.4.17
331
+ - @veloxts/router@0.4.17
332
+
333
+ ## 0.4.16
334
+
335
+ ### Patch Changes
336
+
337
+ - fixed velox procedures list
338
+ - Updated dependencies
339
+ - @veloxts/core@0.4.16
340
+ - @veloxts/router@0.4.16
341
+
342
+ ## 0.4.15
343
+
344
+ ### Patch Changes
345
+
346
+ - chore lint fixes
347
+ - Updated dependencies
348
+ - @veloxts/core@0.4.15
349
+ - @veloxts/router@0.4.15
350
+
351
+ ## 0.4.14
352
+
353
+ ### Patch Changes
354
+
355
+ - fixed proxy-type inferance and update proxy hooks for optional input handling
356
+ - Updated dependencies
357
+ - @veloxts/core@0.4.14
358
+ - @veloxts/router@0.4.14
359
+
360
+ ## 0.4.13
361
+
362
+ ### Patch Changes
363
+
364
+ - add debug mode to dev server
365
+ - Updated dependencies
366
+ - @veloxts/core@0.4.13
367
+ - @veloxts/router@0.4.13
368
+
369
+ ## 0.4.12
370
+
371
+ ### Patch Changes
372
+
373
+ - preserve type info in trpc template AppRouter export
374
+ - Updated dependencies
375
+ - @veloxts/core@0.4.12
376
+ - @veloxts/router@0.4.12
377
+
378
+ ## 0.4.11
379
+
380
+ ### Patch Changes
381
+
382
+ - fixed api.health.check.useQuery is not a function issue
383
+ - Updated dependencies
384
+ - @veloxts/core@0.4.11
385
+ - @veloxts/router@0.4.11
386
+
387
+ ## 0.4.10
388
+
389
+ ### Patch Changes
390
+
391
+ - fixed ReferenceError: styles is not defined in rpc template
392
+ - Updated dependencies
393
+ - @veloxts/core@0.4.10
394
+ - @veloxts/router@0.4.10
395
+
396
+ ## 0.4.7
397
+
398
+ ### Patch Changes
399
+
400
+ - Add dynamic headers and routes config to client
401
+ - Updated dependencies
402
+ - @veloxts/core@0.4.7
403
+ - @veloxts/router@0.4.7
404
+
405
+ ## 0.4.6
406
+
407
+ ### Patch Changes
408
+
409
+ - Fix broken npm packages - republish with correct dependencies
410
+ - Updated dependencies
411
+ - @veloxts/core@0.4.6
412
+ - @veloxts/router@0.4.6
413
+
414
+ ## 0.4.5
415
+
416
+ ### Patch Changes
417
+
418
+ - b06631b: CI CD npm Trusted Publishing setup
419
+ - Updated dependencies [b06631b]
420
+ - @veloxts/core@0.4.5
421
+ - @veloxts/router@0.4.5
422
+
423
+ ## 0.4.4
424
+
425
+ ### Patch Changes
426
+
427
+ - 05ae1a5: Update to boilerplate, work in progress
428
+ - 9961b52: full-stack React frontend implementation
429
+ - Updated dependencies [05ae1a5]
430
+ - Updated dependencies [9961b52]
431
+ - @veloxts/core@0.4.4
432
+ - @veloxts/router@0.4.4
433
+
434
+ ## 0.4.3
435
+
436
+ ### Patch Changes
437
+
438
+ - ef8d5d0: Dynamically load VeloxTS version from `package.json` in shared template configuration
439
+ - Updated dependencies [ef8d5d0]
440
+ - @veloxts/core@0.4.3
441
+ - @veloxts/router@0.4.3
442
+
443
+ ## 0.4.2
444
+
445
+ ### Patch Changes
446
+
447
+ - 5b4f02c: Updated documentations
448
+ - 0d8d775: Updated guides and readme files
449
+ - Updated dependencies [5b4f02c]
450
+ - Updated dependencies [0d8d775]
451
+ - @veloxts/core@0.4.2
452
+ - @veloxts/router@0.4.2
453
+
454
+ ## 0.4.1
455
+
456
+ ### Patch Changes
457
+
458
+ - 0eea918: Completed CLI generators
459
+ - Updated dependencies [0eea918]
460
+ - @veloxts/core@0.4.1
461
+ - @veloxts/router@0.4.1
462
+
463
+ ## 0.4.0
464
+
465
+ ### Minor Changes
466
+
467
+ - b478fee: Performance Benchmarks | 34k req/s, <1ms p50 latency, 75MB memory, 530ms startup
468
+
469
+ ### Patch Changes
470
+
471
+ - Updated dependencies [b478fee]
472
+ - @veloxts/core@0.4.0
473
+ - @veloxts/router@0.4.0
474
+
475
+ ## 0.3.6
476
+
477
+ ### Patch Changes
478
+
479
+ - 929f2ab: Interactive CLI setup
480
+ - Updated dependencies [929f2ab]
481
+ - @veloxts/core@0.3.6
482
+ - @veloxts/router@0.3.6
483
+
484
+ ## 0.3.5
485
+
486
+ ### Patch Changes
487
+
488
+ - 658e83f: @veloxts/auth, Full REST Support, Better error messages, Type tests with tsd
489
+ - Updated dependencies [658e83f]
490
+ - @veloxts/core@0.3.5
491
+ - @veloxts/router@0.3.5
492
+
493
+ ## 0.3.4
494
+
495
+ ### Patch Changes
496
+
497
+ - 65ef3e7: DI container and Auth Guards
498
+ - Updated dependencies [65ef3e7]
499
+ - @veloxts/core@0.3.4
500
+ - @veloxts/router@0.3.4
501
+
502
+ ## 0.3.3
503
+
504
+ ### Patch Changes
505
+
506
+ - 4ee103b: Full REST support PUT, PATCH and DELETE
507
+ - Updated dependencies [4ee103b]
508
+ - @veloxts/core@0.3.3
509
+ - @veloxts/orm@0.3.3
510
+ - @veloxts/router@0.3.3
511
+
512
+ ## 0.3.2
513
+
514
+ ### Patch Changes
515
+
516
+ - abf270e: Dynamically set core `VELOX_VERSION` from package.json
517
+ - Updated dependencies [abf270e]
518
+ - @veloxts/core@0.3.2
519
+ - @veloxts/orm@0.3.2
520
+ - @veloxts/router@0.3.2
521
+
522
+ ## 0.3.1
523
+
524
+ ### Patch Changes
525
+
526
+ - cb9806e: Fixed the value for VELOXTS_VERSION in create app template
527
+ - Updated dependencies [cb9806e]
528
+ - @veloxts/core@0.3.1
529
+ - @veloxts/orm@0.3.1
530
+ - @veloxts/router@0.3.1
531
+
532
+ ## 0.3.0
533
+
534
+ ### Minor Changes
535
+
536
+ - 1adce10: Introduced an umbrella package for server side packages: @veloxts/velox
537
+
538
+ ### Patch Changes
539
+
540
+ - Updated dependencies [1adce10]
541
+ - @veloxts/core@0.3.0
542
+ - @veloxts/orm@0.3.0
543
+ - @veloxts/router@0.3.0
544
+
545
+ ## 0.2.2
546
+
547
+ ### Patch Changes
548
+
549
+ - Version bump to sync with create-velox-app native module fix
550
+ - Updated dependencies
551
+ - @veloxts/core@0.2.2
552
+ - @veloxts/orm@0.2.2
553
+ - @veloxts/router@0.2.2
554
+
555
+ ## 0.2.0
556
+
557
+ ### Minor Changes
558
+
559
+ - 9404976: fix Prisma client generation. README adjustments
560
+
561
+ ### Patch Changes
562
+
563
+ - Updated dependencies [9404976]
564
+ - @veloxts/router@0.2.0
565
+ - @veloxts/core@0.2.0
566
+ - @veloxts/orm@0.2.0
567
+
568
+ ## 0.1.1
569
+
570
+ ### Patch Changes
571
+
572
+ - Fix Prisma client generation in scaffolder
573
+
574
+ - Added automatic Prisma client generation after dependency installation in create-velox-app
575
+ - Fixed database template to validate DATABASE_URL environment variable
576
+ - Added alpha release warning to all package READMEs
577
+ - Fixed TypeScript type for registerTRPCPlugin to accept FastifyInstance
578
+ - Updated playground app to use Prisma 7.x custom output path
579
+
580
+ - Updated dependencies
581
+ - @veloxts/core@0.1.1
582
+ - @veloxts/router@0.1.1
583
+ - @veloxts/orm@0.1.1
package/GUIDE.md ADDED
@@ -0,0 +1,79 @@
1
+ # @veloxts/auth
2
+
3
+ Authentication and authorization for VeloxTS Framework.
4
+
5
+ ## Features
6
+
7
+ - Session management (cookie-based)
8
+ - JWT authentication (stateless tokens)
9
+ - Password hashing (bcrypt)
10
+ - CSRF protection
11
+ - Guards (role/permission-based)
12
+ - Rate limiting
13
+
14
+ ## Session Authentication
15
+
16
+ ```typescript
17
+ import { sessionMiddleware } from '@veloxts/auth';
18
+
19
+ const session = sessionMiddleware({
20
+ secret: process.env.SESSION_SECRET!,
21
+ expiration: { ttl: 86400, sliding: true },
22
+ });
23
+
24
+ const getProfile = procedure()
25
+ .use(session.requireAuth())
26
+ .query(({ ctx }) => ctx.user);
27
+
28
+ // Login/Logout
29
+ await ctx.session.login(user);
30
+ await ctx.session.logout();
31
+ ```
32
+
33
+ ## JWT Authentication
34
+
35
+ ```typescript
36
+ import { jwtManager, authMiddleware } from '@veloxts/auth';
37
+
38
+ const jwt = jwtManager({
39
+ secret: process.env.JWT_SECRET!,
40
+ accessTokenExpiry: '15m',
41
+ refreshTokenExpiry: '7d',
42
+ });
43
+
44
+ const auth = authMiddleware({
45
+ jwt: { secret: process.env.JWT_SECRET! },
46
+ userLoader: (userId) => db.user.findUnique({ where: { id: userId } }),
47
+ });
48
+
49
+ const getProfile = procedure()
50
+ .use(auth.requireAuth())
51
+ .query(({ ctx }) => ctx.user);
52
+ ```
53
+
54
+ ## Guards
55
+
56
+ ```typescript
57
+ import { hasRole, hasPermission } from '@veloxts/auth';
58
+
59
+ const adminOnly = procedure()
60
+ .use(auth.middleware({ guards: [hasRole('admin')] }))
61
+ .mutation(handler);
62
+
63
+ const canEdit = procedure()
64
+ .use(auth.middleware({ guards: [hasPermission('posts.write')] }))
65
+ .mutation(handler);
66
+ ```
67
+
68
+ ## Password Hashing
69
+
70
+ ```typescript
71
+ import { hashPassword, verifyPassword } from '@veloxts/auth';
72
+
73
+ const hash = await hashPassword('password', { cost: 12 });
74
+ const valid = await verifyPassword('password', hash);
75
+ ```
76
+
77
+ ## Learn More
78
+
79
+ See [@veloxts/velox](https://www.npmjs.com/package/@veloxts/velox) for complete documentation.
package/dist/types.d.ts CHANGED
@@ -66,6 +66,8 @@ export interface TokenPayload {
66
66
  aud?: string;
67
67
  /** Not before timestamp - token is invalid before this time */
68
68
  nbf?: number;
69
+ /** Tenant ID for multi-tenancy (optional) */
70
+ tenantId?: string;
69
71
  /** Additional claims */
70
72
  [key: string]: unknown;
71
73
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAM5D;;;;;;;;;;GAUG;AACH,qBAAa,SAAU,SAAQ,KAAK;IAClC,8CAA8C;IAC9C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAE5B,iDAAiD;IACjD,QAAQ,CAAC,IAAI,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Ae,CAAC;IAC7B,UAAU,WAAW;QACnB,4DAA4D;QAC5D,IAAI,CAAC,EAAE,WAAW,CAAC;QACnB,qCAAqC;QACrC,IAAI,CAAC,EAAE,IAAI,CAAC;KACb;CACF;AAED,OAAO,QAAQ,SAAS,CAAC;IACvB,UAAU,cAAc;QACtB,8BAA8B;QAC9B,IAAI,CAAC,EAAE,WAAW,CAAC;QACnB,qCAAqC;QACrC,IAAI,CAAC,EAAE,IAAI,CAAC;KACb;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veloxts/auth",
3
- "version": "0.6.26",
3
+ "version": "0.6.29",
4
4
  "description": "Authentication and authorization system for VeloxTS framework",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -33,7 +33,10 @@
33
33
  },
34
34
  "files": [
35
35
  "dist",
36
- "README.md"
36
+ "README.md",
37
+ "GUIDE.md",
38
+ "LICENSE",
39
+ "CHANGELOG.md"
37
40
  ],
38
41
  "tsd": {
39
42
  "directory": "src/__type-tests__",
@@ -54,8 +57,8 @@
54
57
  "dependencies": {
55
58
  "@fastify/cookie": "11.0.2",
56
59
  "fastify": "5.6.2",
57
- "@veloxts/router": "0.6.26",
58
- "@veloxts/core": "0.6.26"
60
+ "@veloxts/router": "0.6.29",
61
+ "@veloxts/core": "0.6.29"
59
62
  },
60
63
  "peerDependencies": {
61
64
  "argon2": ">=0.30.0",
@@ -79,8 +82,8 @@
79
82
  "fastify-plugin": "5.1.0",
80
83
  "typescript": "5.9.3",
81
84
  "vitest": "4.0.16",
82
- "@veloxts/validation": "0.6.26",
83
- "@veloxts/testing": "0.6.26"
85
+ "@veloxts/validation": "0.6.29",
86
+ "@veloxts/testing": "0.6.29"
84
87
  },
85
88
  "keywords": [
86
89
  "velox",