From 6f5f25fa9bf55104d7b9dac109a69724272f0c63 Mon Sep 17 00:00:00 2001 From: Andy Date: Fri, 23 Jan 2026 17:20:39 -0700 Subject: [PATCH] refactor(remote_auth): remove unused requests.Session The session was created with headers but never used. The class saves sessions locally via the cache rather than uploading to a remote server. --- unshackle/core/remote_auth.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/unshackle/core/remote_auth.py b/unshackle/core/remote_auth.py index 3b2a947..d852578 100644 --- a/unshackle/core/remote_auth.py +++ b/unshackle/core/remote_auth.py @@ -16,7 +16,6 @@ import logging from typing import Any, Dict, Optional import click -import requests import yaml from unshackle.core.api.session_serializer import serialize_session @@ -53,8 +52,6 @@ class RemoteAuthenticator: """ self.remote_url = remote_url.rstrip("/") self.api_key = api_key - self.session = requests.Session() - self.session.headers.update({"X-API-Key": self.api_key, "Content-Type": "application/json"}) def authenticate_service_locally( self, service_tag: str, profile: Optional[str] = None, force_reauth: bool = False