@riocrypto/common-server 1.0.689 → 1.0.690

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.
@@ -22,6 +22,8 @@ const apiKey_1 = require("../services/apiKey");
22
22
  const secret_manager_client_1 = require("../clients/secret-manager-client");
23
23
  const authorize = (req, res, next, mongoose, authorizationTypes) => __awaiter(void 0, void 0, void 0, function* () {
24
24
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
25
+ const apiKey = req.header("x-api-key");
26
+ console.log("x-api-key is ", apiKey);
25
27
  let missingKYC = false;
26
28
  if (authorizationTypes.includes(common_1.AuthorizationType.AdminAPI)) {
27
29
  let apiKey = req.header("x-api-key");
@@ -39,6 +41,7 @@ const authorize = (req, res, next, mongoose, authorizationTypes) => __awaiter(vo
39
41
  authorizationTypes.includes(common_1.AuthorizationType.UserOptional) ||
40
42
  authorizationTypes.includes(common_1.AuthorizationType.Broker)) {
41
43
  const apiKey = req.header("x-api-key");
44
+ console.log("x-api-key is ", apiKey);
42
45
  if (apiKey) {
43
46
  try {
44
47
  console.log("x-api-key is ", apiKey);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.689",
3
+ "version": "1.0.690",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",