Add read-repos to hf oauth scope.

This commit is contained in:
Talmaj Marinc 2026-07-13 00:18:33 +02:00
parent 515d73f6f2
commit 5d8b3690ff

View File

@ -64,7 +64,7 @@ PROVIDERS: dict[str, Provider] = {
host="huggingface.co",
authorize_url="https://huggingface.co/oauth/authorize",
token_url="https://huggingface.co/oauth/token",
scope="openid gated-repos",
scope="openid read-repos gated-repos",
env_keys=("HF_TOKEN", "HUGGING_FACE_HUB_TOKEN"),
client_id_env="COMFY_HF_OAUTH_CLIENT_ID",
),