ecrs-auth-core 1.0.84 → 1.0.85

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.
@@ -30,6 +30,8 @@ export declare class AuthController {
30
30
  designationId: any;
31
31
  lastLoginTime: any;
32
32
  is_reset_password: number;
33
+ profile_photo_url: string;
34
+ permissionTree: string[];
33
35
  };
34
36
  };
35
37
  access_token: string;
@@ -108,6 +108,8 @@ export declare class AuthService {
108
108
  designationId: any;
109
109
  lastLoginTime: any;
110
110
  is_reset_password: number;
111
+ profile_photo_url: string;
112
+ permissionTree: string[];
111
113
  };
112
114
  };
113
115
  access_token: string;
@@ -478,7 +478,7 @@ let AuthService = class AuthService {
478
478
  mobileNo: user.mobileNo,
479
479
  userImage: user.userImage,
480
480
  employeeId: user.referenceId,
481
- permissions: permissionTree,
481
+ // permissions: permissionTree,
482
482
  parentId: user.parentId,
483
483
  referenceId: user.referenceId,
484
484
  branchId,
@@ -512,7 +512,8 @@ let AuthService = class AuthService {
512
512
  designationId,
513
513
  lastLoginTime: lastLoginTime,
514
514
  is_reset_password: is_reset_password,
515
- // profile_photo_url: `${this.uploadPhotoDir}/${user.userImage}`,
515
+ profile_photo_url: `${this.uploadPhotoDir}/${user.userImage}`,
516
+ permissionTree: permissionTree,
516
517
  },
517
518
  },
518
519
  access_token: this.jwtService.sign(payload),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecrs-auth-core",
3
- "version": "1.0.84",
3
+ "version": "1.0.85",
4
4
  "description": "Centralized authentication and authorization module for ECRS apps",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",