fix: set correct cache key
All checks were successful
.NET Test Pipeline / build-and-test (pull_request) Successful in 3m54s

This commit is contained in:
Polianin Nikita 2024-06-27 23:37:40 +03:00
parent 160c7505f0
commit 8d4c482bbd

View File

@ -72,7 +72,7 @@ public class AuthService(ICacheService cache, IAccessToken accessTokenService, I
authToken.UserAgent != request.UserAgent &&
authToken.Ip != request.Ip)
{
await cache.RemoveAsync(request.Fingerprint, cancellation);
await cache.RemoveAsync(GetAuthCacheKey(request.Fingerprint), cancellation);
await RevokeAccessToken(authToken.AccessToken);
throw new SecurityException(request.Fingerprint);