@riocrypto/common-server 1.0.1559 → 1.0.1560
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.
|
@@ -23,7 +23,7 @@ const admin_auth_1 = require("../models/admin-auth");
|
|
|
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
25
|
if (authorizationTypes.includes(common_1.AuthorizationType.GenesisAdmin)) {
|
|
26
|
-
let apiKey = req.header("x-api-key");
|
|
26
|
+
let apiKey = req.header("x-genesis-api-key");
|
|
27
27
|
const GENESIS_ADMIN_KEY = yield secret_manager_client_1.secretManagerClient.getSecretValue("GENESIS_ADMIN_KEY");
|
|
28
28
|
if (!GENESIS_ADMIN_KEY) {
|
|
29
29
|
throw new common_1.SecretManagerError();
|