c2-http 1.0.154 → 1.0.156
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.
|
@@ -100,10 +100,10 @@ class MiddlewareCheckTokenFlow {
|
|
|
100
100
|
express_http_context_1.default.set("userIsAdmin", verify.subIsAdmin);
|
|
101
101
|
express_http_context_1.default.set("userEmail", verify.subEmail);
|
|
102
102
|
express_http_context_1.default.set("userName", verify.subName);
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
103
|
+
// httpContext.set("accountId", verify.account)
|
|
104
|
+
// httpContext.set("accountBlockDate", verify.accountBlockDate)
|
|
105
|
+
// httpContext.set("accountExpireDate", verify.accountExpireDate)
|
|
106
|
+
// httpContext.set("scopes", verify.scopes)
|
|
107
107
|
// const tokenDecoded = await ValidateTokenFlowItem.exec(token)
|
|
108
108
|
// AddInContextFlowItem.exec(tokenDecoded, token)
|
|
109
109
|
// const tokenDecoded = jwt.verify(token, process.env.JWT_SECRET ?? "") as unknown as IJWTPayload//await ValidateTokenFlowItem.exec(token)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "c2-http",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.156",
|
|
4
4
|
"description": "Biblioteca Typescript para API NodeJS",
|
|
5
5
|
"repository": "https://cabralsilva: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@github.com/cabralsilva/c2-http.git",
|
|
6
6
|
"author": "Daniel Cabral <cabralconsultoriaemsoftware@gmail.com>",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"c2-util": "^1.0.28",
|
|
29
29
|
"cookie-parser": "^1.4.7",
|
|
30
30
|
"cors": "^2.8.5",
|
|
31
|
-
"express": "
|
|
31
|
+
"express": "4.19.2",
|
|
32
32
|
"express-http-context": "1.2.4",
|
|
33
33
|
"express-prom-bundle": "^8.0.0",
|
|
34
34
|
"express-rest-i18n": "^1.0.1",
|