function dispatchLoginError(dispatch, authError, params = {}) {
  return dispatch({
    type: actionTypes.LOGIN_ERROR,
    ...params,
    authError
  })
}
Dispatch login error action
@param {Function} dispatch - Action dispatch function
@param {object} authError - Error object
@param {object} params - Supplement action params
@returns {any} Return of action dispatch
@private