PLT-6492 Use new cookie to determine if user is logged in (#6317)
* Use new cookie to determine if user is logged in * Add temporary code for 3.9 to prevent forced re-login
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
1838f6c25e
Коммит
fe95276ba8
@@ -77,6 +77,9 @@ export default function configureStore(initialState) {
|
||||
|
||||
persistor.purge();
|
||||
|
||||
document.cookie = 'MMUSERID=;expires=Thu, 01 Jan 1970 00:00:01 GMT;';
|
||||
window.location.href = '/';
|
||||
|
||||
store.dispatch(batchActions([
|
||||
{
|
||||
type: General.OFFLINE_STORE_RESET,
|
||||
@@ -84,9 +87,6 @@ export default function configureStore(initialState) {
|
||||
}
|
||||
]));
|
||||
|
||||
localStorage.removeItem('currentUserId');
|
||||
window.location.href = '/';
|
||||
|
||||
setTimeout(() => {
|
||||
purging = false;
|
||||
}, 500);
|
||||
|
||||
Ссылка в новой задаче
Block a user