Skip to content

Commit bf71b2b

Browse files
authored
fix: fail to use CLOUDFLARE_TURN_KEY_* even if HF_TOKEN is missing (#307)
1 parent 4ac69ee commit bf71b2b

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
@@ -137,7 +137,7 @@ def get_cloudflare_turn_credentials(
137137
"""
138138
if hf_token is None:
139139
hf_token = os.getenv("HF_TOKEN")
140-
if hf_token is not None:
140+
if hf_token:
141141
return httpx.get(
142142
CLOUDFLARE_FASTRTC_TURN_URL,
143143
headers={"Authorization": f"Bearer {hf_token}"},

0 commit comments

Comments
 (0)