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
Этот коммит содержится в:
Joram Wilander
2017-05-04 16:36:31 -04:00
коммит произвёл GitHub
родитель 1838f6c25e
Коммит fe95276ba8
7 изменённых файлов: 39 добавлений и 12 удалений

Просмотреть файл

@@ -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);