Create a Hugging Face OAuthProvider (via OIDC discovery)
Source:R/providers__research_enterprise.R
oauth_provider_huggingface.RdConfigure Sign in with Hugging Face. Register an OAuth application in your
Hugging Face settings, then pass its credentials to oauth_client().
Value
OAuthProvider object configured for Hugging Face.
Details
For login, request scopes = c("openid", "profile"), adding "email"
only if needed. Repository access and inference require their own scopes,
such as "read-repos" or "inference-api", and user consent.
This preset targets confidential applications with a client secret.
See Sign in with Hugging Face.