client/src/sagas/authSaga.js
changeset 90 990f2c928b15
parent 89 06f609adfbf8
child 134 be36eed5e6e0
equal deleted inserted replaced
89:06f609adfbf8 90:990f2c928b15
    60 
    60 
    61         const actions = [{
    61         const actions = [{
    62           type: types.AUTH_STORE_TOKEN_ASYNC,
    62           type: types.AUTH_STORE_TOKEN_ASYNC,
    63           token: response.token,
    63           token: response.token,
    64         }, {
    64         }, {
    65           type: types.AUTH_REGISTER_SUCCESS,
    65           type: types.AUTH_LOGIN_SUCCESS,
    66           user: response.user,
    66           user: response.user,
    67           token: response.token,
    67           token: response.token,
    68         }];
    68         }];
    69 
    69 
    70         yield all(actions.map(action => put(action)));
    70         yield all(actions.map(action => put(action)));