Skip to content

Commit

Permalink
Temporarily disable token revokation
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollo3zehn committed Nov 23, 2023
1 parent 2dd65ff commit 6dd32da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Nexus/API/UsersController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ public async Task<ActionResult<TokenPair>> RefreshTokenAsync(RefreshTokenRequest
if (token.Token != request.RefreshToken)
{
_logger.LogWarning($"Attempted reuse of revoked token of user {token.Owner.Id} ({token.Owner.Name}).");
await _authService.RevokeTokenAsync(token);

# warning Temporarily disabled
// await _authService.RevokeTokenAsync(token);
}

if (token.IsExpired)
Expand Down

0 comments on commit 6dd32da

Please sign in to comment.