@riocrypto/common-server 1.0.572 → 1.0.575

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.
@@ -98,7 +98,8 @@ const authorize = (req, res, next, mongoose, authorizationTypes) => __awaiter(vo
98
98
  catch (err) { }
99
99
  }
100
100
  }
101
- if (authorizationTypes.includes(common_1.AuthorizationType.PartnerAuth)) {
101
+ if (authorizationTypes.includes(common_1.AuthorizationType.PartnerAuth) ||
102
+ authorizationTypes.includes(common_1.AuthorizationType.Partner)) {
102
103
  if ((_g = req.cookies) === null || _g === void 0 ? void 0 : _g.partnerAccessToken) {
103
104
  try {
104
105
  const PARTNER_ACCESS_TOKEN_SECRET = yield secret_manager_client_1.secretManagerClient.getSecretValue("PARTNER_ACCESS_TOKEN_SECRET");
@@ -215,6 +216,12 @@ const authorize = (req, res, next, mongoose, authorizationTypes) => __awaiter(vo
215
216
  req.user = user;
216
217
  }
217
218
  }
219
+ console.log("req.user", req.user);
220
+ console.log("req.currentAuth", req.currentAuth);
221
+ console.log("req.currentAdminAuth", req.currentAdminAuth);
222
+ console.log("req.currentPartnerAuth", req.currentPartnerAuth);
223
+ console.log("req.partner", req.partner);
224
+ console.log("cookies", req.cookies);
218
225
  if (
219
226
  // if no auth
220
227
  (!req.currentAdminAuth &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.572",
3
+ "version": "1.0.575",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -23,7 +23,7 @@
23
23
  "dependencies": {
24
24
  "@aws-sdk/client-s3": "^3.297.0",
25
25
  "@google-cloud/storage": "^6.9.5",
26
- "@riocrypto/common": "^1.0.557",
26
+ "@riocrypto/common": "^1.0.558",
27
27
  "@types/express": "^4.17.13",
28
28
  "axios": "^0.27.2",
29
29
  "ccxt": "^3.0.30",