@exulu/backend 1.25.0 → 1.25.2

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/CHANGELOG.md CHANGED
@@ -1,7 +1,6 @@
1
- # [1.25.0](https://github.com/Qventu/exulu-backend/compare/v1.24.0...v1.25.0) (2025-09-30)
1
+ ## [1.25.2](https://github.com/Qventu/exulu-backend/compare/v1.25.1...v1.25.2) (2025-10-07)
2
2
 
3
3
 
4
- ### Features
4
+ ### Bug Fixes
5
5
 
6
- * switch to anthropic sdk for claude code endpoint ([4dcfcfd](https://github.com/Qventu/exulu-backend/commit/4dcfcfde031e5515e7329a217498dce4aeafd364))
7
- * trying out different proxy methods for opencode and claude code ([7630bec](https://github.com/Qventu/exulu-backend/commit/7630bec940a55da58b3dfb210b3a56849cd31a54))
6
+ * add token validation error logging ([4b65dd6](https://github.com/Qventu/exulu-backend/commit/4b65dd6df04e35c6c1ff441290b69f34f09fd81f))
package/dist/index.cjs CHANGED
@@ -479,6 +479,7 @@ var getToken = async (authHeader) => {
479
479
  const { payload } = await (0, import_jose.jwtVerify)(token, jwk);
480
480
  return payload;
481
481
  } catch (error) {
482
+ console.error("Invalid token error in getToken", error);
482
483
  throw new Error("Invalid token");
483
484
  }
484
485
  };
@@ -554,7 +555,7 @@ var authentication = async ({
554
555
  user
555
556
  };
556
557
  } catch (error) {
557
- console.error(error);
558
+ console.error("Invalid token error in authentication", error);
558
559
  return {
559
560
  error: true,
560
561
  message: "Invalid token.",
@@ -5229,7 +5230,8 @@ var createExpressRoutes = async (app, logger, agents, tools, contexts, config, t
5229
5230
  path: req.path,
5230
5231
  requestId: "req-" + Date.now(),
5231
5232
  ipAddress: req.ip,
5232
- userAgent: req.get("User-Agent")
5233
+ userAgent: req.get("User-Agent"),
5234
+ headers: req.headers
5233
5235
  });
5234
5236
  logger.info("================");
5235
5237
  const authenticationResult = await requestValidators.authenticate(req);
package/dist/index.js CHANGED
@@ -428,6 +428,7 @@ var getToken = async (authHeader) => {
428
428
  const { payload } = await jwtVerify(token, jwk);
429
429
  return payload;
430
430
  } catch (error) {
431
+ console.error("Invalid token error in getToken", error);
431
432
  throw new Error("Invalid token");
432
433
  }
433
434
  };
@@ -503,7 +504,7 @@ var authentication = async ({
503
504
  user
504
505
  };
505
506
  } catch (error) {
506
- console.error(error);
507
+ console.error("Invalid token error in authentication", error);
507
508
  return {
508
509
  error: true,
509
510
  message: "Invalid token.",
@@ -5195,7 +5196,8 @@ var createExpressRoutes = async (app, logger, agents, tools, contexts, config, t
5195
5196
  path: req.path,
5196
5197
  requestId: "req-" + Date.now(),
5197
5198
  ipAddress: req.ip,
5198
- userAgent: req.get("User-Agent")
5199
+ userAgent: req.get("User-Agent"),
5200
+ headers: req.headers
5199
5201
  });
5200
5202
  logger.info("================");
5201
5203
  const authenticationResult = await requestValidators.authenticate(req);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@exulu/backend",
3
3
  "author": "Qventu Bv.",
4
- "version": "1.25.0",
4
+ "version": "1.25.2",
5
5
  "main": "./dist/index.js",
6
6
  "private": false,
7
7
  "publishConfig": {