@shadimakhoul/ggcoach 1.0.19 → 1.0.20

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.
@@ -26,7 +26,7 @@ const authenticateToken = (JWT_SECRET) => {
26
26
  });
27
27
  const isValid = await validateTokenWithRedis(decoded);
28
28
  if (!isValid) {
29
- res.status(403).json({
29
+ res.status(401).json({
30
30
  success: false,
31
31
  message: "Invalid or expired token",
32
32
  });
@@ -36,7 +36,7 @@ const authenticateToken = (JWT_SECRET) => {
36
36
  next();
37
37
  }
38
38
  catch (error) {
39
- res.status(403).json({
39
+ res.status(401).json({
40
40
  success: false,
41
41
  message: "Invalid or expired token",
42
42
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shadimakhoul/ggcoach",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "Shared utilities and types for GGCoach microservices",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",