From f45b23c7706cb5503cb6e636a6528799c986ecd6 Mon Sep 17 00:00:00 2001 From: Shane Blair <34230290+sblair12@users.noreply.github.com> Date: Thu, 5 Jun 2025 06:42:56 -0700 Subject: [PATCH] [FIX] Allow usage of Cloudflare tokens if hf_token is missing (#338) --- backend/fastrtc/credentials.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/fastrtc/credentials.py b/backend/fastrtc/credentials.py index 4b3fb6a..0bbf615 100644 --- a/backend/fastrtc/credentials.py +++ b/backend/fastrtc/credentials.py @@ -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,