From d978845ecd2b57b84255428261999686ce66d695 Mon Sep 17 00:00:00 2001 From: Vadim Belov Date: Tue, 17 Dec 2024 04:58:17 -0800 Subject: [PATCH] Remove logging of refresh token attempts The logging statement `_logger.LogInformation("Refresh attempt for {RefreshToken}", request.RefreshToken);` has been removed from the `Refresh` method in the `AuthController` class. This change reduces logging verbosity and helps avoid logging sensitive information such as refresh tokens. --- Sources/Octockup.Server/Controllers/AuthController.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/Sources/Octockup.Server/Controllers/AuthController.cs b/Sources/Octockup.Server/Controllers/AuthController.cs index 1c90ee9..fde194f 100644 --- a/Sources/Octockup.Server/Controllers/AuthController.cs +++ b/Sources/Octockup.Server/Controllers/AuthController.cs @@ -17,7 +17,6 @@ public class AuthController(ILogger _logger, ITokenProvider _tok [HttpPost(nameof(Refresh))] public async Task Refresh([FromBody] RefreshRequest request) { - _logger.LogInformation("Refresh attempt for {RefreshToken}", request.RefreshToken); bool isValid = _tokenProvider.ValidateToken(request.RefreshToken); if (!isValid) {