@exulu/backend 1.25.1 → 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,6 +1,6 @@
1
- ## [1.25.1](https://github.com/Qventu/exulu-backend/compare/v1.25.0...v1.25.1) (2025-10-07)
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
4
  ### Bug Fixes
5
5
 
6
- * log headers in graphql ([8d3094b](https://github.com/Qventu/exulu-backend/commit/8d3094b1a9b836c06352e9ed6057c4654fe457d4))
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.",
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.",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@exulu/backend",
3
3
  "author": "Qventu Bv.",
4
- "version": "1.25.1",
4
+ "version": "1.25.2",
5
5
  "main": "./dist/index.js",
6
6
  "private": false,
7
7
  "publishConfig": {