diff --git a/.changeset/dull-squids-admire.md b/.changeset/dull-squids-admire.md new file mode 100644 index 00000000000..f2571b12cec --- /dev/null +++ b/.changeset/dull-squids-admire.md @@ -0,0 +1,5 @@ +--- +'@clerk/shared': minor +--- + +Add `vercel` to `OAuthProvider` type to support "Sign in with Vercel" OAuth flow diff --git a/packages/clerk-js/src/ui/hooks/__tests__/useEnabledThirdPartyProviders.test.tsx b/packages/clerk-js/src/ui/hooks/__tests__/useEnabledThirdPartyProviders.test.tsx index 189c879e7b1..33def92779e 100644 --- a/packages/clerk-js/src/ui/hooks/__tests__/useEnabledThirdPartyProviders.test.tsx +++ b/packages/clerk-js/src/ui/hooks/__tests__/useEnabledThirdPartyProviders.test.tsx @@ -55,6 +55,7 @@ describe('useEnabledThirdPartyProviders', () => { 'oauth_tiktok', 'oauth_twitch', 'oauth_twitter', + 'oauth_vercel', 'oauth_x', 'oauth_xero', ]); diff --git a/packages/shared/src/oauth.ts b/packages/shared/src/oauth.ts index 4838b6bcbe9..942bfe76e55 100644 --- a/packages/shared/src/oauth.ts +++ b/packages/shared/src/oauth.ts @@ -169,6 +169,12 @@ export const OAUTH_PROVIDERS: OAuthProviderData[] = [ name: 'Hugging Face', docsUrl: 'https://clerk.com/docs/authentication/social-connections/huggingface', }, + { + provider: 'vercel', + strategy: 'oauth_vercel', + name: 'Vercel', + docsUrl: 'https://clerk.com/docs/authentication/social-connections/vercel', + }, ]; interface getOAuthProviderDataProps { diff --git a/packages/shared/src/types/oauth.ts b/packages/shared/src/types/oauth.ts index 76707e51cff..cf20b674495 100644 --- a/packages/shared/src/types/oauth.ts +++ b/packages/shared/src/types/oauth.ts @@ -37,6 +37,7 @@ export type LinearOauthProvider = 'linear'; export type XOauthProvider = 'x'; export type EnstallOauthProvider = 'enstall'; export type HuggingfaceOAuthProvider = 'huggingface'; +export type VercelOauthProvider = 'vercel'; export type CustomOauthProvider = `custom_${string}`; export type OAuthProvider = @@ -68,4 +69,5 @@ export type OAuthProvider = | XOauthProvider | EnstallOauthProvider | HuggingfaceOAuthProvider + | VercelOauthProvider | CustomOauthProvider;