monkey-front-core 0.0.379 → 0.0.381

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.
@@ -3637,8 +3637,21 @@ class MonkeyEcxTokenStorageService {
3637
3637
  }
3638
3638
  const config = await monkeyecxConfigService.config()
3639
3639
  .pipe(take(1)).toPromise();
3640
+ const accessType = localStorage.getItem('accessType');
3641
+ const companyType = localStorage.getItem('companyType');
3642
+ if (!data.accessToken) {
3643
+ const accessToken = localStorage.getItem('accessToken');
3644
+ const refreshToken = localStorage.getItem('refreshToken');
3645
+ data = {
3646
+ ...data,
3647
+ accessToken,
3648
+ refreshToken
3649
+ };
3650
+ }
3640
3651
  const handledData = {
3641
- ...data
3652
+ ...data,
3653
+ accessType,
3654
+ companyType
3642
3655
  };
3643
3656
  if (!data?.program && config?.program) {
3644
3657
  handledData.program = config?.program?.token;