@lyrolab/nest-shared 1.7.1 → 1.8.0

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 (33) hide show
  1. package/CHANGELOG.md +3 -3
  2. package/dist/auth/auth.constants.d.ts +1 -0
  3. package/dist/auth/auth.constants.js +5 -0
  4. package/dist/auth/auth.constants.js.map +1 -0
  5. package/dist/auth/decorators/current-user.decorator.d.ts +1 -0
  6. package/dist/auth/decorators/current-user.decorator.js +11 -0
  7. package/dist/auth/decorators/current-user.decorator.js.map +1 -0
  8. package/dist/auth/decorators/public.decorator.d.ts +2 -0
  9. package/dist/auth/decorators/public.decorator.js +8 -0
  10. package/dist/auth/decorators/public.decorator.js.map +1 -0
  11. package/dist/auth/guards/jwt-auth.guard.d.ts +9 -0
  12. package/dist/auth/guards/jwt-auth.guard.js +41 -0
  13. package/dist/auth/guards/jwt-auth.guard.js.map +1 -0
  14. package/dist/auth/helpers/keycloak.helper.d.ts +4 -0
  15. package/dist/auth/helpers/keycloak.helper.js +10 -0
  16. package/dist/auth/helpers/keycloak.helper.js.map +1 -0
  17. package/dist/auth/index.d.ts +8 -0
  18. package/dist/auth/index.js +25 -0
  19. package/dist/auth/index.js.map +1 -0
  20. package/dist/auth/interfaces/auth-module-options.interface.d.ts +14 -0
  21. package/dist/auth/interfaces/auth-module-options.interface.js +3 -0
  22. package/dist/auth/interfaces/auth-module-options.interface.js.map +1 -0
  23. package/dist/auth/models/jwt-payload.d.ts +15 -0
  24. package/dist/auth/models/jwt-payload.js +3 -0
  25. package/dist/auth/models/jwt-payload.js.map +1 -0
  26. package/dist/auth/shared-auth.module.d.ts +8 -0
  27. package/dist/auth/shared-auth.module.js +82 -0
  28. package/dist/auth/shared-auth.module.js.map +1 -0
  29. package/dist/auth/strategies/jwt.strategy.d.ts +11 -0
  30. package/dist/auth/strategies/jwt.strategy.js +49 -0
  31. package/dist/auth/strategies/jwt.strategy.js.map +1 -0
  32. package/dist/tsconfig.tsbuildinfo +1 -1
  33. package/package.json +15 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyrolab/nest-shared",
3
- "version": "1.7.1",
3
+ "version": "1.8.0",
4
4
  "description": "A collection of shared modules for NestJS applications",
5
5
  "author": "",
6
6
  "license": "UNLICENSED",
@@ -52,6 +52,11 @@
52
52
  "types": "./dist/health/index.d.ts",
53
53
  "import": "./dist/health/index.js",
54
54
  "require": "./dist/health/index.js"
55
+ },
56
+ "./auth": {
57
+ "types": "./dist/auth/index.d.ts",
58
+ "import": "./dist/auth/index.js",
59
+ "require": "./dist/auth/index.js"
55
60
  }
56
61
  },
57
62
  "scripts": {
@@ -66,6 +71,11 @@
66
71
  "lint-staged": "npx lint-staged",
67
72
  "release": "semantic-release"
68
73
  },
74
+ "dependencies": {
75
+ "jwks-rsa": "^3.2.0",
76
+ "passport": "^0.7.0",
77
+ "passport-jwt": "^4.0.1"
78
+ },
69
79
  "peerDependencies": {
70
80
  "@ai-sdk/provider": "^3.0.8",
71
81
  "@nestjs/bullmq": "^11.0.0",
@@ -82,7 +92,8 @@
82
92
  "class-validator": "^0.14.0",
83
93
  "rxjs": "^7.8.1",
84
94
  "typeorm": "^0.3.22",
85
- "zod": "^4.1.13"
95
+ "zod": "^4.1.13",
96
+ "@nestjs/passport": "^11.0.0"
86
97
  },
87
98
  "devDependencies": {
88
99
  "@ai-sdk/provider": "^3.0.8",
@@ -95,6 +106,7 @@
95
106
  "@nestjs/cache-manager": "^3.0.1",
96
107
  "@nestjs/cli": "^11.0.0",
97
108
  "@nestjs/common": "^11.0.1",
109
+ "@nestjs/passport": "^11.0.5",
98
110
  "@nestjs/config": "^4.0.2",
99
111
  "@nestjs/core": "^11.0.13",
100
112
  "@nestjs/platform-express": "^11.0.1",
@@ -111,6 +123,7 @@
111
123
  "@swc/core": "^1.10.7",
112
124
  "@types/express": "^5.0.0",
113
125
  "@types/jest": "^29.5.14",
126
+ "@types/passport-jwt": "^4.0.1",
114
127
  "@types/node": "^22.10.7",
115
128
  "@types/supertest": "^6.0.2",
116
129
  "ai": "^6.0.86",