powr-sdk-api 2.3.3 → 2.3.4

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.
@@ -34,13 +34,10 @@ const verifyToken = async (req, res, next) => {
34
34
 
35
35
  // Attach user info to request object
36
36
  req.user = {
37
- powrId: new ObjectId(decoded.userId),
38
- // powr-base user ID
39
- access: 1 // Default access level for API users
37
+ powrId: decoded.userId // powr-base user ID
40
38
  };
41
39
  console.log("Authenticated user:", {
42
- powrId: req.user.powrId,
43
- access: req.user.access
40
+ powrId: req.user.powrId
44
41
  });
45
42
  next();
46
43
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powr-sdk-api",
3
- "version": "2.3.3",
3
+ "version": "2.3.4",
4
4
  "description": "Shared API core library for PowrStack projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",