monkey-front-core 0.0.383 → 0.0.384
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 +10 -2
- package/fesm2015/monkey-front-core.mjs +7 -1
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +9 -1
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/services/storage/monkeyecx-token-storage.service.d.ts +1 -21
- package/monkey-front-core-0.0.384.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.383.tgz +0 -0
|
@@ -3707,7 +3707,15 @@ class MonkeyEcxTokenStorageService {
|
|
|
3707
3707
|
if (username) {
|
|
3708
3708
|
data = await store.select(select({ username })).pipe(take(1)).toPromise();
|
|
3709
3709
|
}
|
|
3710
|
-
|
|
3710
|
+
let handledData = {
|
|
3711
|
+
...data
|
|
3712
|
+
};
|
|
3713
|
+
if (!handledData.me) {
|
|
3714
|
+
handledData = {
|
|
3715
|
+
me: localStorage.getItem('me')
|
|
3716
|
+
};
|
|
3717
|
+
}
|
|
3718
|
+
return handledData?.me;
|
|
3711
3719
|
}
|
|
3712
3720
|
tokenHasChanged() {
|
|
3713
3721
|
return this.token$.asObservable();
|