ecrs-auth-core 1.0.70 → 1.0.72

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.
@@ -220,7 +220,7 @@ let AuthService = class AuthService {
220
220
  });
221
221
  if (workProfile) {
222
222
  branchId = workProfile?.branch_id || null;
223
- dispatchCenterId = workProfile?.dispatch_id || null;
223
+ dispatchCenterId = workProfile?.dispatch_center_id || null;
224
224
  departmentId = workProfile?.department_id || null;
225
225
  designationId = workProfile?.designation_id || null;
226
226
  }
@@ -73,6 +73,7 @@ let ApiKeyGuard = class ApiKeyGuard {
73
73
  const record = await this.apiKeyRepo.findOne({
74
74
  where: { key: apiKey, isActive: true },
75
75
  });
76
+ console.log(`🔑 Validating API key: ${apiKey}`);
76
77
  if (!record) {
77
78
  return { valid: false, message: 'API key not found or inactive' };
78
79
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecrs-auth-core",
3
- "version": "1.0.70",
3
+ "version": "1.0.72",
4
4
  "description": "Centralized authentication and authorization module for ECRS apps",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",