monkey-front-core 0.0.322 → 0.0.324
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/commons/monkeyecx-commons.service.mjs +1 -3
- package/esm2020/lib/core/services/storage/monkeyecx-token-storage.service.mjs +4 -1
- package/fesm2015/monkey-front-core.mjs +3 -2
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +3 -2
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/monkey-front-core-0.0.324.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.322.tgz +0 -0
|
@@ -2898,8 +2898,6 @@ class MonkeyEcxCommonsService {
|
|
|
2898
2898
|
this.flagValidator = true;
|
|
2899
2899
|
if (this.tokenStorage) {
|
|
2900
2900
|
this.__tokenCredentials = await this.tokenStorage.getToken();
|
|
2901
|
-
console.log('this.__tokenCredentials');
|
|
2902
|
-
console.log(this.__tokenCredentials);
|
|
2903
2901
|
}
|
|
2904
2902
|
const pend = this.allowedSecurityAccessByPendency(otherArgs?.pendency);
|
|
2905
2903
|
const allowedByProgram = this.allowedSecurityAccessByFeature(otherArgs?.featureByProgram);
|
|
@@ -3647,6 +3645,8 @@ class MonkeyEcxTokenStorageService {
|
|
|
3647
3645
|
}
|
|
3648
3646
|
setAllTokens(token) {
|
|
3649
3647
|
const { token$, store } = this;
|
|
3648
|
+
// #TODO - Remover esse código e apenas deixar o username
|
|
3649
|
+
// todo o restante ficou salvo na store com a keu sendo o username
|
|
3650
3650
|
Object.entries(token).forEach(([key, value]) => {
|
|
3651
3651
|
if (MonkeyEcxUtils.persistNullEmptyUndefined(value)) {
|
|
3652
3652
|
localStorage.setItem(key, value);
|
|
@@ -3759,6 +3759,7 @@ class MonkeyEcxTokenStorageService {
|
|
|
3759
3759
|
}
|
|
3760
3760
|
});
|
|
3761
3761
|
localStorage.removeItem('me');
|
|
3762
|
+
localStorage.removeItem('mecx-store');
|
|
3762
3763
|
const username = localStorage.getItem('username');
|
|
3763
3764
|
if (username) {
|
|
3764
3765
|
store.dispatch(deleteOne({ data: { username } }));
|