Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/selfish-dogs-taste.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@clerk/clerk-js": patch
"@clerk/types": patch
---

Introduce support for the Hugging Face OAuth Provider.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ describe('useEnabledThirdPartyProviders', () => {
'oauth_gitlab',
'oauth_google',
'oauth_hubspot',
'oauth_huggingface',
'oauth_instagram',
'oauth_line',
'oauth_linear',
Expand Down
8 changes: 8 additions & 0 deletions packages/types/src/oauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export type SlackOauthProvider = 'slack';
export type LinearOauthProvider = 'linear';
export type XOauthProvider = 'x';
export type EnstallOauthProvider = 'enstall';
export type HuggingfaceOAuthProvider = 'huggingface';
export type CustomOauthProvider = `custom_${string}`;

export type OAuthProvider =
Expand Down Expand Up @@ -66,6 +67,7 @@ export type OAuthProvider =
| LinearOauthProvider
| XOauthProvider
| EnstallOauthProvider
| HuggingfaceOAuthProvider
| CustomOauthProvider;

export const OAUTH_PROVIDERS: OAuthProviderData[] = [
Expand Down Expand Up @@ -231,6 +233,12 @@ export const OAUTH_PROVIDERS: OAuthProviderData[] = [
name: 'Enstall',
docsUrl: 'https://clerk.com/docs/authentication/social-connections/enstall',
},
{
provider: 'huggingface',
strategy: 'oauth_huggingface',
name: 'Hugging Face',
docsUrl: 'https://clerk.com/docs/authentication/social-connections/huggingface',
},
];

interface getOAuthProviderDataProps {
Expand Down