Appearance
Hugging Face authentication
Hugging Face authentication lets your users sign in with the Hugging Face account they already use for AI tools and communities.
What this integration supports (optional)
- Social sign in with Hugging Face
- Redirect to different pages for success, error, and first-time users
Setup in the Hugging Face dashboard
- Go to the Hugging Face settings for your account or organization.
- Create a new OAuth application (or an equivalent app configuration).
- Add a redirect URL (the URL Hugging Face sends users back to after login).
- Use the full URL of the page you select as
Success pagein WeWeb.
- Use the full URL of the page you select as
- Copy the credentials Hugging Face provides (for example
Client IDandClient Secret).
Connect Hugging Face in WeWeb
- In the WeWeb editor, go to
Data & API → Auth → Integrating providers. - Select
Hugging Faceand turn on theEnabletoggle. - Paste the values from Hugging Face into the fields shown in WeWeb.
- Click
Save.
Test sign in
- In
Interface, add a “Continue with Hugging Face” button. - Create a workflow on click and add
Sign in with social provider. - Set:
Provider:hugging-faceSuccess page,Error page, And (optional)New user page
- Preview your app and complete the sign-in flow.
For details about sessions, roles, and protecting pages and data after sign in, see the shared auth docs.
Common pitfalls
Redirect URL mismatch
If Hugging Face rejects the login with a redirect error:
- Confirm the redirect URL in Hugging Face exactly matches the
Success pageURL you selected in WeWeb. - Make sure you’re testing the same environment (preview vs production) you configured.
Reference
Settings
| Setting in WeWeb | Description | Where to find it in Hugging Face |
|---|---|---|
Client ID | Identifies your Hugging Face app. | In your OAuth app configuration. |
Client Secret | Used to complete the sign-in flow securely. | In your OAuth app configuration. |
FAQs
Which redirect URL should I add in Hugging Face?
Use the full URL of the page you choose as Success page in Sign in with social provider (for the environment you’re testing).

