From 5d8b3690ff3cd3842b2fc8cc2e0e2f05a2492aec Mon Sep 17 00:00:00 2001 From: Talmaj Marinc Date: Mon, 13 Jul 2026 00:18:33 +0200 Subject: [PATCH] Add read-repos to hf oauth scope. --- app/model_downloader/auth/providers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/model_downloader/auth/providers.py b/app/model_downloader/auth/providers.py index bf42b9306..52313ca5b 100644 --- a/app/model_downloader/auth/providers.py +++ b/app/model_downloader/auth/providers.py @@ -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", ),