@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 +2 -2
- package/dist/index.cjs +2 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [1.25.
|
|
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
|
-
*
|
|
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.",
|