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:
|
|
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) {
|