@forklaunch/core 0.14.12 → 0.14.14

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.
@@ -118,7 +118,7 @@ function isBasicAuthMethod(maybeBasicAuthMethod) {
118
118
 
119
119
  // src/http/guards/isHmacMethod.ts
120
120
  function isHmacMethod(maybeHmacMethod) {
121
- return typeof maybeHmacMethod === "object" && maybeHmacMethod !== null && "secretKey" in maybeHmacMethod && maybeHmacMethod.secretKey != null;
121
+ return typeof maybeHmacMethod === "object" && maybeHmacMethod !== null && "hmac" in maybeHmacMethod && maybeHmacMethod.hmac != null;
122
122
  }
123
123
 
124
124
  // src/http/guards/isJwtAuthMethod.ts
@@ -464,6 +464,7 @@ async function parseRequestAuth(req, res, next) {
464
464
  req._globalOptions?.()?.auth
465
465
  ) ?? [];
466
466
  if (error != null) {
467
+ req.openTelemetryCollector.error(error, message);
467
468
  res.type("text/plain");
468
469
  res.status(error).send(message);
469
470
  return;