{"size": 403, "ext": "js", "max_stars_repo_path": "src/store/authentication/reducer.js", "max_stars_repo_name": "vamseeuxd/on-board-react", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/store/authentication/reducer.js", "max_issues_repo_name": "vamseeuxd/on-board-react", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/store/authentication/reducer.js", "max_forks_repo_name": "vamseeuxd/on-board-react", "max_forks_repo_forks_event_min_datetime": "2020-06-04T02:52:27.000Z", "max_forks_repo_forks_event_max_datetime": "2020-06-05T03:12:08.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 2, "avg_line_length": 18.3181818182, "max_line_length": 48, "alphanum_fraction": 0.6476426799}
import {AUTHENTICATED} from "./acions";

const initialState = {
  isAuthenticated: true,
  profileObj: null
};

function reducer(state = initialState, action) {
  switch (action.type) {
    case AUTHENTICATED:
      return {
        ...state,
        isAuthenticated: action.isAuthenticated,
        profileObj: action.profileObj
      };
    default:
      return state;
  }
}

export default reducer;
