Skip to content

Commit 40a841d

Browse files
Raillywobsoriano
andauthored
feat(types): Add Vercel to OAuthProvider type (#7324)
Co-authored-by: Robert Soriano <[email protected]>
1 parent 02798f5 commit 40a841d

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

.changeset/dull-squids-admire.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/shared': minor
3+
---
4+
5+
Add `vercel` to `OAuthProvider` type to support "Sign in with Vercel" OAuth flow

packages/clerk-js/src/ui/hooks/__tests__/useEnabledThirdPartyProviders.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ describe('useEnabledThirdPartyProviders', () => {
5555
'oauth_tiktok',
5656
'oauth_twitch',
5757
'oauth_twitter',
58+
'oauth_vercel',
5859
'oauth_x',
5960
'oauth_xero',
6061
]);

packages/shared/src/oauth.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,12 @@ export const OAUTH_PROVIDERS: OAuthProviderData[] = [
169169
name: 'Hugging Face',
170170
docsUrl: 'https://clerk.com/docs/authentication/social-connections/huggingface',
171171
},
172+
{
173+
provider: 'vercel',
174+
strategy: 'oauth_vercel',
175+
name: 'Vercel',
176+
docsUrl: 'https://clerk.com/docs/authentication/social-connections/vercel',
177+
},
172178
];
173179

174180
interface getOAuthProviderDataProps {

packages/shared/src/types/oauth.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export type LinearOauthProvider = 'linear';
3737
export type XOauthProvider = 'x';
3838
export type EnstallOauthProvider = 'enstall';
3939
export type HuggingfaceOAuthProvider = 'huggingface';
40+
export type VercelOauthProvider = 'vercel';
4041
export type CustomOauthProvider = `custom_${string}`;
4142

4243
export type OAuthProvider =
@@ -68,4 +69,5 @@ export type OAuthProvider =
6869
| XOauthProvider
6970
| EnstallOauthProvider
7071
| HuggingfaceOAuthProvider
72+
| VercelOauthProvider
7173
| CustomOauthProvider;

0 commit comments

Comments
 (0)