Skip to content

Commit f45b23c

Browse files
authored
[FIX] Allow usage of Cloudflare tokens if hf_token is missing (#338)
1 parent 1877720 commit f45b23c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/fastrtc/credentials.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ async def get_cloudflare_turn_credentials_async(
208208

209209
if hf_token is None:
210210
hf_token = os.getenv("HF_TOKEN", "").strip()
211-
if hf_token is not None:
211+
if hf_token:
212212
async with httpx.AsyncClient() as client:
213213
response = await client.get(
214214
CLOUDFLARE_FASTRTC_TURN_URL,

0 commit comments

Comments
 (0)