monkey-front-core 0.0.322 → 0.0.323
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 +4 -1
- package/fesm2015/monkey-front-core.mjs +3 -0
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +3 -0
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/monkey-front-core-0.0.323.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.322.tgz +0 -0
|
@@ -3647,6 +3647,8 @@ class MonkeyEcxTokenStorageService {
|
|
|
3647
3647
|
}
|
|
3648
3648
|
setAllTokens(token) {
|
|
3649
3649
|
const { token$, store } = this;
|
|
3650
|
+
// #TODO - Remover esse código e apenas deixar o username
|
|
3651
|
+
// todo o restante ficou salvo na store com a keu sendo o username
|
|
3650
3652
|
Object.entries(token).forEach(([key, value]) => {
|
|
3651
3653
|
if (MonkeyEcxUtils.persistNullEmptyUndefined(value)) {
|
|
3652
3654
|
localStorage.setItem(key, value);
|
|
@@ -3759,6 +3761,7 @@ class MonkeyEcxTokenStorageService {
|
|
|
3759
3761
|
}
|
|
3760
3762
|
});
|
|
3761
3763
|
localStorage.removeItem('me');
|
|
3764
|
+
localStorage.removeItem('mecx-store');
|
|
3762
3765
|
const username = localStorage.getItem('username');
|
|
3763
3766
|
if (username) {
|
|
3764
3767
|
store.dispatch(deleteOne({ data: { username } }));
|