Skip to content
This repository was archived by the owner on Sep 21, 2026. It is now read-only.

Commit ee60d8e

Browse files
authored
Merge pull request #3183 from arpit10128/feat-add-huggingface-oauth-console
feat: add Hugging Face OAuth support to Console
2 parents 0e69386 + fd24e3e commit ee60d8e

8 files changed

Lines changed: 47 additions & 3 deletions

File tree

‎bun.lock‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"dependencies": {
2222
"@ai-sdk/svelte": "^1.1.24",
23-
"@appwrite.io/console": "https://pkg.vc/-/@appwrite/@appwrite.io/console@ed09983",
23+
"@appwrite.io/console": "https://pkg.vc/-/@appwrite/@appwrite.io/console@56957ff",
2424
"@appwrite.io/pink-icons": "0.25.0",
2525
"@appwrite.io/pink-icons-svelte": "https://pkg.vc/-/@appwrite/@appwrite.io/pink-icons-svelte@bfe7ce3",
2626
"@appwrite.io/pink-legacy": "^1.0.3",

‎src/lib/stores/oauth-providers.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,12 @@ export const oAuthProviders: Record<string, Provider> = {
145145
component: Google,
146146
internal: true
147147
},
148+
huggingface: {
149+
name: 'Hugging Face',
150+
icon: 'huggingface',
151+
docs: 'https://huggingface.co/docs/hub/oauth',
152+
component: Main
153+
},
148154
keycloak: {
149155
name: 'Keycloak',
150156
icon: 'keycloak',

‎src/routes/(console)/project-[region]-[project]/auth/updateOAuth.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,12 @@ async function updateProjectOAuth({
202202
prompt: (promptValues as ProjectOAuth2GooglePrompt[]) ?? [],
203203
enabled
204204
});
205+
case OAuthProvider.Huggingface:
206+
return projectSdk.updateOAuth2HuggingFace({
207+
clientId: getAppId(),
208+
clientSecret: getSecret(),
209+
enabled
210+
});
205211
case OAuthProvider.Keycloak:
206212
return projectSdk.updateOAuth2Keycloak({
207213
endpoint: getDetail('endpoint'),

‎static/icons/dark/color/huggingface.svg‎

Lines changed: 8 additions & 0 deletions
Loading

‎static/icons/dark/grayscale/huggingface.svg‎

Lines changed: 8 additions & 0 deletions
Loading

‎static/icons/light/color/huggingface.svg‎

Lines changed: 8 additions & 0 deletions
Loading

‎static/icons/light/grayscale/huggingface.svg‎

Lines changed: 8 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)