From 71e8eca5f4b98b7b9d92c92cecf85f88885d8841 Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Wed, 9 Oct 2024 03:02:35 +0300 Subject: [PATCH] refactor: remove unused param --- .../Core/Middleware/CookieAuthorizationMiddleware.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Endpoint/Configuration/Core/Middleware/CookieAuthorizationMiddleware.cs b/Endpoint/Configuration/Core/Middleware/CookieAuthorizationMiddleware.cs index c3e0cf5..1b97741 100644 --- a/Endpoint/Configuration/Core/Middleware/CookieAuthorizationMiddleware.cs +++ b/Endpoint/Configuration/Core/Middleware/CookieAuthorizationMiddleware.cs @@ -1,5 +1,4 @@ using Microsoft.AspNetCore.Http; -using Mirea.Api.Security.Common.Interfaces; using System.Threading.Tasks; namespace Mirea.Api.Endpoint.Configuration.Core.Middleware; @@ -7,7 +6,7 @@ namespace Mirea.Api.Endpoint.Configuration.Core.Middleware; public class CookieAuthorizationMiddleware(RequestDelegate next) { public const string JwtAuthorizationName = "_ajwt"; - public async Task InvokeAsync(HttpContext context, IRevokedToken revokedTokenStore) + public async Task InvokeAsync(HttpContext context) { if (context.Request.Cookies.ContainsKey(JwtAuthorizationName)) context.Request.Headers.Authorization = "Bearer " + context.Request.Cookies[JwtAuthorizationName];