diff --git a/Birdmap.API/Startup.cs b/Birdmap.API/Startup.cs index 8a789c0..2726d6d 100644 --- a/Birdmap.API/Startup.cs +++ b/Birdmap.API/Startup.cs @@ -12,6 +12,7 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.IdentityModel.Tokens; using NSwag.Generation.Processors.Security; +using System; using System.Text; namespace Birdmap.API @@ -71,7 +72,7 @@ namespace Birdmap.API { opt.Title = "Birdmap"; opt.OperationProcessors.Add(new OperationSecurityScopeProcessor("Jwt Token")); - opt.AddSecurity("Jwt Token", new string[] { }, + opt.AddSecurity("Jwt Token", Array.Empty(), new NSwag.OpenApiSecurityScheme { Type = NSwag.OpenApiSecuritySchemeType.ApiKey,