diff --git a/API/ROLAC.API/Services/AuthService.cs b/API/ROLAC.API/Services/AuthService.cs index 2155c75..bd7009e 100644 --- a/API/ROLAC.API/Services/AuthService.cs +++ b/API/ROLAC.API/Services/AuthService.cs @@ -186,7 +186,7 @@ public class AuthService : IAuthService var otherTokens = await _db.RefreshTokens .Where(rt => rt.UserId == userId && rt.RevokedAt == null - && rt.TokenHash != currentHash) + && (currentHash == null || rt.TokenHash != currentHash)) .ToListAsync(); foreach (var token in otherTokens)