diff --git a/packages/core/src/providers/twitter.ts b/packages/core/src/providers/twitter.ts index b3f0aa548c..07f46bd8d5 100644 --- a/packages/core/src/providers/twitter.ts +++ b/packages/core/src/providers/twitter.ts @@ -1,7 +1,7 @@ /** *
@@ -11,7 +11,7 @@ import type { OAuthConfig, OAuthUserConfig } from "./index.js" /** - * [Users lookup](https://developer.twitter.com/en/docs/twitter-api/users/lookup/api-reference/get-users-me) + * [Users lookup](https://developer.x.com/en/docs/twitter-api/users/lookup/api-reference/get-users-me) */ export interface TwitterProfile { data: { @@ -125,7 +125,7 @@ export interface TwitterProfile { * * ### Resources * - * - [Twitter App documentation](https://developer.twitter.com/en/apps) + * - [Twitter App documentation](https://developer.x.com/en/apps) * * ## OAuth 2 * Twitter supports OAuth 2, which is currently opt-in. To enable it, simply add version: "2.0" to your Provider configuration: @@ -185,10 +185,10 @@ export default function Twitter( type: "oauth", checks: ["pkce", "state"], authorization: - "https://twitter.com/i/oauth2/authorize?scope=users.read tweet.read offline.access", - token: "https://api.twitter.com/2/oauth2/token", + "https://x.com/i/oauth2/authorize?scope=users.read tweet.read offline.access", + token: "https://api.x.com/2/oauth2/token", userinfo: - "https://api.twitter.com/2/users/me?user.fields=profile_image_url", + "https://api.x.com/2/users/me?user.fields=profile_image_url", profile({ data }) { return { id: data.id,