Skip to content

Commit 4e2792d

Browse files
committed
refactor: remove unused get_access_token import from auth helpers
1 parent f5df64b commit 4e2792d

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/golf/auth/helpers.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
from starlette.requests import Request
77

8-
# Re-export get_access_token from the MCP SDK
9-
108
# Context variable to store the current request's API key
119
_current_api_key: ContextVar[str | None] = ContextVar("current_api_key", default=None)
1210

src/golf/core/builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1247,7 +1247,7 @@ def build_project(
12471247
12481248
# Legacy ProviderConfig removed in Golf 0.2.x - use modern auth configurations
12491249
# Legacy OAuth imports removed in Golf 0.2.x - use FastMCP 2.11+ auth providers
1250-
from golf.auth.helpers import get_access_token, get_provider_token, extract_token_from_header, get_api_key, set_api_key
1250+
from golf.auth.helpers import get_provider_token, extract_token_from_header, get_api_key, set_api_key
12511251
from golf.auth.api_key import configure_api_key, get_api_key_config
12521252
"""
12531253
)

0 commit comments

Comments
 (0)