From ed58479fd07eb37882199cec4bb868220959a009 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Mon, 28 Oct 2024 23:59:07 +0530 Subject: [PATCH] fix: use api_key instead of apiKeyAuth --- server/src/swagger/config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/swagger/config.ts b/server/src/swagger/config.ts index 6c15d9d0..2e2e9808 100644 --- a/server/src/swagger/config.ts +++ b/server/src/swagger/config.ts @@ -11,7 +11,7 @@ const options = { }, components: { securitySchemes: { - ApiKeyAuth: { + api_key: { type: 'apiKey', in: 'header', name: 'x-api-key', @@ -21,7 +21,7 @@ const options = { }, security: [ { - ApiKeyAuth: [], // Apply this security scheme globally + api_key: [], // Apply this security scheme globally }, ], },