From 6d5af81f6883749d2960b6b63bc3a43db3a40e37 Mon Sep 17 00:00:00 2001 From: Agusti Fernandez Date: Sat, 16 Apr 2022 09:22:22 +0200 Subject: [PATCH] adds authorize to swagger docs to pass apiKey (#2524) --- apps/swagger/pages/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/swagger/pages/index.tsx b/apps/swagger/pages/index.tsx index 806a64141d..ce739e704a 100644 --- a/apps/swagger/pages/index.tsx +++ b/apps/swagger/pages/index.tsx @@ -32,7 +32,10 @@ export default function APIDocs() { docExpansion="none" operationsSorter="method" filter={true} + withCredentials={true} + persistAuthorization={true} url={process.env.NEXT_PUBLIC_SWAGGER_DOCS_URL || "https://api.cal.com/api/docs"} + // preauthorizeApiKey="" /> ); }