diff options
Diffstat (limited to 'src/auth')
| -rw-r--r-- | src/auth/index.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/auth/index.js b/src/auth/index.js index 8950c529..fb2a7038 100644 --- a/src/auth/index.js +++ b/src/auth/index.js @@ -1,4 +1,5 @@ import {LOG_IN_SUCCEEDED, LOG_OUT} from "../actions/auth"; +import {DELETE_CURRENT_USER_SUCCEEDED} from "../actions/users"; const getAuthObject = () => { const authItem = localStorage.getItem("auth"); @@ -43,6 +44,7 @@ export const authRedirectMiddleware = store => next => action => { window.location.href = "/simulations"; break; case LOG_OUT: + case DELETE_CURRENT_USER_SUCCEEDED: clearAuthLocalStorage(); window.location.href = "/"; break; |
