@restura/core 0.1.0-alpha.21 → 0.1.0-alpha.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -711,7 +711,7 @@ function addApiResponseFunctions(req, res, next) {
711
711
  function authenticateUser(applicationAuthenticateHandler) {
712
712
  return (req, res, next) => {
713
713
  applicationAuthenticateHandler(req, res, (userDetails) => {
714
- req.requesterDetails = __spreadValues(__spreadValues({}, req.requesterDetails), userDetails);
714
+ req.requesterDetails = __spreadValues({ host: req.hostname, ipAddress: req.ip || "" }, userDetails);
715
715
  next();
716
716
  });
717
717
  };