@forklaunch/core 0.14.13 → 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.
package/lib/http/index.js CHANGED
@@ -193,7 +193,7 @@ function isBasicAuthMethod(maybeBasicAuthMethod) {
193
193
 
194
194
  // src/http/guards/isHmacMethod.ts
195
195
  function isHmacMethod(maybeHmacMethod) {
196
- return typeof maybeHmacMethod === "object" && maybeHmacMethod !== null && "secretKey" in maybeHmacMethod && maybeHmacMethod.secretKey != null;
196
+ return typeof maybeHmacMethod === "object" && maybeHmacMethod !== null && "hmac" in maybeHmacMethod && maybeHmacMethod.hmac != null;
197
197
  }
198
198
 
199
199
  // src/http/guards/isJwtAuthMethod.ts
@@ -539,6 +539,7 @@ async function parseRequestAuth(req, res, next) {
539
539
  req._globalOptions?.()?.auth
540
540
  ) ?? [];
541
541
  if (error != null) {
542
+ req.openTelemetryCollector.error(error, message);
542
543
  res.type("text/plain");
543
544
  res.status(error).send(message);
544
545
  return;