From 64e4d7201e00169b4a7f6bc110696047c47afa0b Mon Sep 17 00:00:00 2001 From: ChiaraBm Date: Sat, 14 Feb 2026 15:31:47 +0100 Subject: [PATCH] Removed test code from ApiKeySchemeHandler --- .../Implementations/ApiKeyScheme/ApiKeySchemeHandler.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Moonlight.Api/Implementations/ApiKeyScheme/ApiKeySchemeHandler.cs b/Moonlight.Api/Implementations/ApiKeyScheme/ApiKeySchemeHandler.cs index a13bf79a..4f37e81d 100644 --- a/Moonlight.Api/Implementations/ApiKeyScheme/ApiKeySchemeHandler.cs +++ b/Moonlight.Api/Implementations/ApiKeyScheme/ApiKeySchemeHandler.cs @@ -46,15 +46,11 @@ public class ApiKeySchemeHandler : AuthenticationHandler cacheKey, async ct => { - var x = await ApiKeyRepository + return await ApiKeyRepository .Query() .Where(x => x.Key == authHeaderValue) .Select(x => new ApiKeySession(x.Permissions, x.ValidUntil)) .FirstOrDefaultAsync(cancellationToken: ct); - - Console.WriteLine($"API: {x?.ValidUntil}"); - - return x; }, new HybridCacheEntryOptions() {