From 9195d976bc26a6fe09fc97e730324a6b5b089dd4 Mon Sep 17 00:00:00 2001 From: Dotty Dotter Date: Fri, 10 Apr 2026 21:19:31 +0200 Subject: [PATCH] Fix: httpx import in auth callback --- app/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,