@riocrypto/common 1.0.409 → 1.0.411

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.
@@ -128,9 +128,12 @@ const authorize = (req, res, next, mongoose, authorizationTypes) => __awaiter(vo
128
128
  if (missingKYC) {
129
129
  throw new missing_kyc_approval_error_1.MissingKYCApprovalError();
130
130
  }
131
+ console.log(authorizationTypes);
132
+ console.log(req.cookies);
131
133
  if ((authorizationTypes.includes(authorization_type_1.AuthorizationType.User) ||
132
134
  authorizationTypes.includes(authorization_type_1.AuthorizationType.UserNoKYC)) &&
133
135
  ((_g = req.cookies) === null || _g === void 0 ? void 0 : _g.jwt)) {
136
+ console.log("hit");
134
137
  throw new missing_user_error_1.MissingUserError();
135
138
  }
136
139
  throw new not_authorized_error_1.NotAuthorizedError();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.409",
3
+ "version": "1.0.411",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",