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

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.js CHANGED
@@ -757,6 +757,8 @@ function addApiResponseFunctions(req, res, next) {
757
757
  function authenticateUser(applicationAuthenticateHandler) {
758
758
  return (req, res, next) => {
759
759
  applicationAuthenticateHandler(req, res, (userDetails) => {
760
+ req.requesterDetails.host = req.hostname;
761
+ req.requesterDetails.ipAddress = req.ip || "";
760
762
  req.requesterDetails = __spreadValues(__spreadValues({}, req.requesterDetails), userDetails);
761
763
  next();
762
764
  });