Update reducer to not alter cookie states
@@ -9,16 +9,17 @@ export const tokenReducer: Reducer<TokenStateSchema> =
switch (action.type) {
case actionTypes.RECEIVE_TOKEN:
- Cookies.set('token', action.token.token);
- Cookies.set('user', action.username);
+ // Cookies.set('token', action.token.token);
+ // Cookies.set('user', action.username);
return {
...state,
user: action.username,
token: action.token.token
};
case actionTypes.DISCARD_TOKEN:
- Cookies.remove('token');
- Cookies.remove('user');
+ // Cookies.remove('token');
+ // Cookies.remove('user');
+ // Cookies.remove('sessionid');
return {
...state,
user: '',
