diff options
| author | Georgios Andreadis <info@gandreadis.com> | 2020-07-02 18:39:28 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-08-24 19:47:21 +0200 |
| commit | f119fc78dda4d1e828dde04f378a63a93e3a0a7e (patch) | |
| tree | bea1eace5d47f21a7ccb835c6a6079bc92e48710 /frontend/src/auth/index.js | |
| parent | 7f27a6370a0af25e1bf6ff8f46360c6c26c21e0b (diff) | |
Add current progress on frontend port
Diffstat (limited to 'frontend/src/auth/index.js')
| -rw-r--r-- | frontend/src/auth/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/auth/index.js b/frontend/src/auth/index.js index 7922f567..f93c7141 100644 --- a/frontend/src/auth/index.js +++ b/frontend/src/auth/index.js @@ -29,7 +29,7 @@ export const getAuthToken = () => { return authObj.authToken } -export const saveAuthLocalStorage = payload => { +export const saveAuthLocalStorage = (payload) => { localStorage.setItem('auth', JSON.stringify(payload)) } @@ -37,7 +37,7 @@ export const clearAuthLocalStorage = () => { localStorage.setItem('auth', '') } -export const authRedirectMiddleware = store => next => action => { +export const authRedirectMiddleware = (store) => (next) => (action) => { switch (action.type) { case LOG_IN_SUCCEEDED: saveAuthLocalStorage(action.payload) |
