diff --git a/app/main.py b/app/main.py index c949ebd..45f03ef 100644 --- a/app/main.py +++ b/app/main.py @@ -309,7 +309,8 @@ async def auth_callback(request: Request, code: str = "", state: str = ""): base = str(request.base_url).rstrip("/").replace("http://", "https://") redirect_uri = f"{base}/api/auth/callback" - async with httpx.AsyncClient(timeout=10) as client: + import httpx as _httpx + async with _httpx.AsyncClient(timeout=10) as client: resp = await client.post(token_url, data={ "grant_type": "authorization_code", "client_id": settings.keycloak_client_id,