[FIX] Allow usage of Cloudflare tokens if hf_token is missing (#338)

This commit is contained in:
Shane Blair
2025-06-05 06:42:56 -07:00
committed by GitHub
parent 1877720231
commit f45b23c770

View File

@@ -208,7 +208,7 @@ async def get_cloudflare_turn_credentials_async(
if hf_token is None:
hf_token = os.getenv("HF_TOKEN", "").strip()
if hf_token is not None:
if hf_token:
async with httpx.AsyncClient() as client:
response = await client.get(
CLOUDFLARE_FASTRTC_TURN_URL,