monkey-front-core 0.0.380 → 0.0.382
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.
- package/esm2020/lib/core/services/storage/monkeyecx-token-storage.service.mjs +12 -2
- package/fesm2015/monkey-front-core.mjs +8 -1
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +11 -1
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/monkey-front-core-0.0.382.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.380.tgz +0 -0
|
@@ -3623,7 +3623,8 @@ class MonkeyEcxTokenStorageService {
|
|
|
3623
3623
|
const username = localStorage.getItem('username');
|
|
3624
3624
|
let data = {
|
|
3625
3625
|
username: username || '',
|
|
3626
|
-
program: ''
|
|
3626
|
+
program: '',
|
|
3627
|
+
accessToken: ''
|
|
3627
3628
|
};
|
|
3628
3629
|
if (username) {
|
|
3629
3630
|
data = await store.select(select({ username })).pipe(take(1)).toPromise();
|
|
@@ -3639,6 +3640,15 @@ class MonkeyEcxTokenStorageService {
|
|
|
3639
3640
|
.pipe(take(1)).toPromise();
|
|
3640
3641
|
const accessType = localStorage.getItem('accessType');
|
|
3641
3642
|
const companyType = localStorage.getItem('companyType');
|
|
3643
|
+
if (!data.accessToken) {
|
|
3644
|
+
const accessToken = localStorage.getItem('accessToken');
|
|
3645
|
+
const refreshToken = localStorage.getItem('refreshToken');
|
|
3646
|
+
data = {
|
|
3647
|
+
...data,
|
|
3648
|
+
accessToken,
|
|
3649
|
+
refreshToken
|
|
3650
|
+
};
|
|
3651
|
+
}
|
|
3642
3652
|
const handledData = {
|
|
3643
3653
|
...data,
|
|
3644
3654
|
accessType,
|