This commit is contained in:
Chi Vinh Le
2018-02-01 18:25:35 +01:00
parent ed8d9e985c
commit 4464183b42
-1
View File
@@ -156,7 +156,6 @@ export const checkLogin = () => (
export const logout = () => (dispatch, _, { rest, client, localStorage }) => {
return rest('/auth', { method: 'DELETE' }).then(() => {
if (localStorage) {
localStorage.removeItem('token');
localStorage.removeItem('exp');