dms-middleware-auth 1.0.5 → 1.0.6

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.
@@ -87,7 +87,7 @@ let AuthMiddleware = class AuthMiddleware {
87
87
  }
88
88
  // Check route access
89
89
  clientAttributes = JSON.parse(clientAttributes);
90
- if (!clientAttributes[req.originalUrl][0]) {
90
+ if (!clientAttributes[req.originalUrl]) {
91
91
  return res.status(403).json({ message: 'Access denied for this route' });
92
92
  }
93
93
  // Cache interface details
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dms-middleware-auth",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Reusable middleware for authentication and authorization in NestJS applications.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -57,7 +57,7 @@ export class AuthMiddleware implements NestMiddleware {
57
57
 
58
58
  // Check route access
59
59
  clientAttributes = JSON.parse(clientAttributes);
60
- if (!clientAttributes[req.originalUrl][0]) {
60
+ if (!clientAttributes[req.originalUrl]) {
61
61
  return res.status(403).json({ message: 'Access denied for this route' });
62
62
  }
63
63