@@ -32,12 +32,6 @@ export interface OAuthXConfig {
3232 */
3333 scope ?: string [ ]
3434
35- /**
36- * Require email from user
37- * @default false
38- */
39- emailRequired ?: boolean
40-
4135 /**
4236 * X OAuth Authorization URL
4337 * @default 'https://twitter.com/i/oauth2/authorize'
@@ -60,7 +54,7 @@ export interface OAuthXConfig {
6054 * Extra authorization parameters to provide to the authorization URL
6155 * @see https://developer.x.com/en/docs/authentication/oauth-2-0/user-access-token
6256 */
63- authorizationParams : Record < string , string >
57+ authorizationParams ? : Record < string , string >
6458
6559 /**
6660 * Redirect URL to to allow overriding for situations like prod failing to determine public hostname
@@ -76,9 +70,9 @@ export function oauthXEventHandler({
7670} : OAuthConfig < OAuthXConfig > ) {
7771 return eventHandler ( async ( event : H3Event ) => {
7872 config = defu ( config , useRuntimeConfig ( event ) . oauth ?. x , {
79- authorizationURL : 'https://twitter .com/i/oauth2/authorize' ,
80- tokenURL : 'https://api.twitter .com/2/oauth2/token' ,
81- userURL : 'https://api.twitter .com/2/users/me' ,
73+ authorizationURL : 'https://x .com/i/oauth2/authorize' ,
74+ tokenURL : 'https://api.x .com/2/oauth2/token' ,
75+ userURL : 'https://api.x .com/2/users/me' ,
8276 authorizationParams : {
8377 state : randomUUID ( ) ,
8478 code_challenge : randomUUID ( ) ,
0 commit comments