Skip to content

Commit

Permalink
feat(types): Add Hugging Face OAuth Provider constants (#4021)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikpolik authored Aug 27, 2024
1 parent 05bf278 commit 8be1a7a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
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

0 comments on commit 8be1a7a

Please sign in to comment.