Changeset 19398ad for jobvista-frontend/src/redux/reducers
- Timestamp:
- 05/16/24 23:09:21 (6 months ago)
- Branches:
- main
- Children:
- 28b3398
- Parents:
- d8b6c91
- Location:
- jobvista-frontend/src/redux/reducers
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
jobvista-frontend/src/redux/reducers/authReducer.js
rd8b6c91 r19398ad 21 21 case UPDATE_TOKEN: 22 22 let token = action.payload; 23 let currentUser = null23 let currentUser = ""; 24 24 if(!isExpired(token)) { 25 25 localStorage.setItem(AUTH_TOKEN, token); … … 37 37 }; 38 38 case SIGN_OUT: 39 console.log("BRISAM")40 39 localStorage.removeItem(CURRENT_USER); 41 40 localStorage.removeItem(AUTH_TOKEN); 42 41 return { 43 42 ...state, 44 currentUser: null,45 token: null43 currentUser: "", 44 token: "", 46 45 } 47 46
Note:
See TracChangeset
for help on using the changeset viewer.