Skip to content
Open
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
5 changes: 5 additions & 0 deletions .changeset/dull-squids-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/shared': minor
---

Add `vercel` to `OAuthProvider` type to support "Sign in with Vercel" OAuth flow
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ describe('useEnabledThirdPartyProviders', () => {
'oauth_tiktok',
'oauth_twitch',
'oauth_twitter',
'oauth_vercel',
'oauth_x',
'oauth_xero',
]);
Expand Down
6 changes: 6 additions & 0 deletions packages/shared/src/oauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions packages/shared/src/types/oauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down Expand Up @@ -68,4 +69,5 @@ export type OAuthProvider =
| XOauthProvider
| EnstallOauthProvider
| HuggingfaceOAuthProvider
| VercelOauthProvider
| CustomOauthProvider;
Loading