File tree 4 files changed +19
-2
lines changed
backend/src/api/resources
clerk-js/src/ui/utils/test
4 files changed +19
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @clerk/clerk-js ' : minor
3
+ ' @clerk/backend ' : minor
4
+ ' @clerk/types ' : minor
5
+ ---
6
+
7
+ Add support for X/Twitter v2 OAuth provider
Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ export type OAuthProvider =
16
16
| 'bitbucket'
17
17
| 'microsoft'
18
18
| 'notion'
19
- | 'apple' ;
19
+ | 'apple'
20
+ | 'x' ;
20
21
21
22
export type OAuthStrategy = `oauth_${OAuthProvider } `;
22
23
Original file line number Diff line number Diff line change @@ -130,6 +130,7 @@ const socials = Object.freeze(
130
130
'oauth_box' ,
131
131
'oauth_slack' ,
132
132
'oauth_linear' ,
133
+ 'oauth_x' ,
133
134
] ) ,
134
135
) ;
135
136
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ export type XeroOauthProvider = 'xero';
34
34
export type BoxOauthProvider = 'box' ;
35
35
export type SlackOauthProvider = 'slack' ;
36
36
export type LinearOauthProvider = 'linear' ;
37
+ export type XOauthProvider = 'x' ;
37
38
38
39
export type OAuthProvider =
39
40
| FacebookOauthProvider
@@ -60,7 +61,8 @@ export type OAuthProvider =
60
61
| XeroOauthProvider
61
62
| BoxOauthProvider
62
63
| SlackOauthProvider
63
- | LinearOauthProvider ;
64
+ | LinearOauthProvider
65
+ | XOauthProvider ;
64
66
65
67
export const OAUTH_PROVIDERS : OAuthProviderData [ ] = [
66
68
{
@@ -213,6 +215,12 @@ export const OAUTH_PROVIDERS: OAuthProviderData[] = [
213
215
name : 'Linear' ,
214
216
docsUrl : 'https://clerk.com/docs/authentication/social-connection-with-linear' ,
215
217
} ,
218
+ {
219
+ provider : 'x' ,
220
+ strategy : 'oauth_x' ,
221
+ name : 'X / Twitter' ,
222
+ docsUrl : 'https://clerk.com/docs/authentication/social-connection-with-x-twitter-v2' ,
223
+ } ,
216
224
] ;
217
225
218
226
interface getOAuthProviderDataProps {
You can’t perform that action at this time.
0 commit comments