client/src/reducers/index.js
author ymh <ymh.work@gmail.com>
Mon, 19 Jun 2017 21:37:33 +0200
changeset 58 f16a080e0bc4
parent 44 3b20e2b584fe
child 59 1eb52770eefa
permissions -rw-r--r--
on server, augment default token lifetime and add settings in .env to control it. Add the refresh endpoint

//import { combineReducers } from 'redux-immutable';
import { combineReducers } from 'redux';
import { routerReducer } from 'react-router-redux';

import notes from './notesReducer';
import { currentSession, sessions } from './sessionsReducer';
import { isAuthenticated, currentUser, login, token } from './authReducer';

const rootReducer = combineReducers({
//  currentSession,
  sessions,
  notes,
  isAuthenticated,
  currentUser,
  login,
  token,
  router: routerReducer,
});

export default rootReducer;