Skip to content

Commit

Permalink
Remove logging of refresh token attempts
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bvdcode committed Dec 17, 2024
1 parent 247045f commit d978845
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Sources/Octockup.Server/Controllers/AuthController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public class AuthController(ILogger<AuthController> _logger, ITokenProvider _tok
[HttpPost(nameof(Refresh))]
public async Task<IActionResult> Refresh([FromBody] RefreshRequest request)
{
_logger.LogInformation("Refresh attempt for {RefreshToken}", request.RefreshToken);
bool isValid = _tokenProvider.ValidateToken(request.RefreshToken);
if (!isValid)
{
Expand Down

0 comments on commit d978845

Please sign in to comment.