2016-09-01 00:15:12 +10:00
|
|
|
import { ACCESS_TOKEN_SET } from '../actions/meta';
|
2016-08-27 03:12:19 +10:00
|
|
|
import Immutable from 'immutable';
|
|
|
|
|
|
|
|
const initialState = Immutable.Map();
|
|
|
|
|
|
|
|
export default function meta(state = initialState, action) {
|
|
|
|
switch(action.type) {
|
2016-09-01 00:15:12 +10:00
|
|
|
case ACCESS_TOKEN_SET:
|
2016-08-27 03:12:19 +10:00
|
|
|
return state.set('access_token', action.token);
|
|
|
|
default:
|
|
|
|
return state;
|
|
|
|
}
|
2016-09-13 03:20:55 +10:00
|
|
|
};
|