diff --git a/bun.lock b/bun.lock index 798c00a88..ed5b08375 100644 --- a/bun.lock +++ b/bun.lock @@ -6,7 +6,7 @@ "name": "@appwrite/console", "dependencies": { "@ai-sdk/svelte": "^1.1.24", - "@appwrite.io/console": "https://pkg.vc/-/@appwrite/@appwrite.io/console@ed09983", + "@appwrite.io/console": "https://pkg.vc/-/@appwrite/@appwrite.io/console@56957ff", "@appwrite.io/pink-icons": "0.25.0", "@appwrite.io/pink-icons-svelte": "https://pkg.vc/-/@appwrite/@appwrite.io/pink-icons-svelte@bfe7ce3", "@appwrite.io/pink-legacy": "^1.0.3", @@ -130,7 +130,7 @@ "@analytics/type-utils": ["@analytics/type-utils@0.6.4", "", {}, "sha512-Ou1gQxFakOWLcPnbFVsrPb8g1wLLUZYYJXDPjHkG07+5mustGs5yqACx42UAu4A6NszNN6Z5gGxhyH45zPWRxw=="], - "@appwrite.io/console": ["@appwrite.io/console@https://pkg.vc/-/@appwrite/@appwrite.io/console@ed09983", { "dependencies": { "json-bigint": "1.0.0" } }], + "@appwrite.io/console": ["@appwrite.io/console@https://pkg.vc/-/@appwrite/@appwrite.io/console@56957ff", { "dependencies": { "json-bigint": "1.0.0" } }], "@appwrite.io/pink-icons": ["@appwrite.io/pink-icons@0.25.0", "", {}, "sha512-0O3i2oEuh5mWvjO80i+X6rbzrWLJ1m5wmv2/M3a1p2PyBJsFxN8xQMTEmTn3Wl/D26SsM7SpzbdW6gmfgoVU9Q=="], diff --git a/package.json b/package.json index fd0ebc590..e54f0e19d 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ }, "dependencies": { "@ai-sdk/svelte": "^1.1.24", - "@appwrite.io/console": "https://pkg.vc/-/@appwrite/@appwrite.io/console@ed09983", + "@appwrite.io/console": "https://pkg.vc/-/@appwrite/@appwrite.io/console@56957ff", "@appwrite.io/pink-icons": "0.25.0", "@appwrite.io/pink-icons-svelte": "https://pkg.vc/-/@appwrite/@appwrite.io/pink-icons-svelte@bfe7ce3", "@appwrite.io/pink-legacy": "^1.0.3", diff --git a/src/lib/stores/oauth-providers.ts b/src/lib/stores/oauth-providers.ts index 553e3a7ab..f0701dae3 100644 --- a/src/lib/stores/oauth-providers.ts +++ b/src/lib/stores/oauth-providers.ts @@ -145,6 +145,12 @@ export const oAuthProviders: Record = { component: Google, internal: true }, + huggingface: { + name: 'Hugging Face', + icon: 'huggingface', + docs: 'https://huggingface.co/docs/hub/oauth', + component: Main + }, keycloak: { name: 'Keycloak', icon: 'keycloak', diff --git a/src/routes/(console)/project-[region]-[project]/auth/updateOAuth.ts b/src/routes/(console)/project-[region]-[project]/auth/updateOAuth.ts index 9c777c1dc..7a19d1d81 100644 --- a/src/routes/(console)/project-[region]-[project]/auth/updateOAuth.ts +++ b/src/routes/(console)/project-[region]-[project]/auth/updateOAuth.ts @@ -202,6 +202,12 @@ async function updateProjectOAuth({ prompt: (promptValues as ProjectOAuth2GooglePrompt[]) ?? [], enabled }); + case OAuthProvider.Huggingface: + return projectSdk.updateOAuth2HuggingFace({ + clientId: getAppId(), + clientSecret: getSecret(), + enabled + }); case OAuthProvider.Keycloak: return projectSdk.updateOAuth2Keycloak({ endpoint: getDetail('endpoint'), diff --git a/static/icons/dark/color/huggingface.svg b/static/icons/dark/color/huggingface.svg new file mode 100644 index 000000000..ab959d165 --- /dev/null +++ b/static/icons/dark/color/huggingface.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/static/icons/dark/grayscale/huggingface.svg b/static/icons/dark/grayscale/huggingface.svg new file mode 100644 index 000000000..7224fa4cc --- /dev/null +++ b/static/icons/dark/grayscale/huggingface.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/static/icons/light/color/huggingface.svg b/static/icons/light/color/huggingface.svg new file mode 100644 index 000000000..ab959d165 --- /dev/null +++ b/static/icons/light/color/huggingface.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/static/icons/light/grayscale/huggingface.svg b/static/icons/light/grayscale/huggingface.svg new file mode 100644 index 000000000..7224fa4cc --- /dev/null +++ b/static/icons/light/grayscale/huggingface.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file