pl-fe: do not store serialized client in local storage

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-11-03 00:38:20 +01:00
parent fe5653cce9
commit b38eb86ef7

View file

@ -145,7 +145,7 @@ const sanitizeState = (state: State) => {
});
};
const persistAuth = (state: State) => localStorage.setItem(STORAGE_KEY, JSON.stringify(state.toJS()));
const persistAuth = (state: State) => localStorage.setItem(STORAGE_KEY, JSON.stringify(state.delete('client').toJS()));
const persistSession = (state: State) => {
const me = state.me;