diff --git a/app/index.js b/app/index.js
index d63fbb927..8341b0c40 100644
--- a/app/index.js
+++ b/app/index.js
@@ -8,7 +8,6 @@ import {
Route,
Redirect,
} from 'react-router-dom';
-import Flex from 'shared/components/Flex';
import stores from 'stores';
import DocumentsStore from 'stores/DocumentsStore';
@@ -78,14 +77,11 @@ const Auth = ({ children }: AuthProps) => {
authenticatedStores.collections.fetchAll();
}
- return (
-
- {children}
-
- );
- } else {
- return ;
+ return {children};
}
+
+ stores.auth.logout();
+ window.location.href = BASE_URL;
};
const notFoundSearch = () => ;