refactor: move Linear OAuth utils to connector, use httpx.AsyncClient

This commit is contained in:
CREDO23 2026-01-07 13:13:19 +02:00
parent 4b3d427e90
commit f1a715e04e
4 changed files with 50 additions and 67 deletions

View file

@ -23,7 +23,7 @@ from app.db import (
User,
get_async_session,
)
from app.connectors.linear_oauth import fetch_linear_organization_name
from app.connectors.linear_connector import fetch_linear_organization_name
from app.schemas.linear_auth_credentials import LinearAuthCredentialsBase
from app.users import current_active_user
from app.utils.connector_naming import check_duplicate_connector, generate_unique_connector_name
@ -454,4 +454,4 @@ async def refresh_linear_token(
logger.error(f"Failed to refresh Linear token: {e!s}", exc_info=True)
raise HTTPException(
status_code=500, detail=f"Failed to refresh Linear token: {e!s}"
) from e
) from e