|
1 | 1 | /**
|
2 | 2 | * <div style={{backgroundColor: "#000", display: "flex", justifyContent: "space-between", color: "#fff", padding: 16}}>
|
3 | 3 | * <span>Built-in <b>Twitter</b> integration.</span>
|
4 |
| - * <a href="https://www.twitter.com/"> |
| 4 | + * <a href="https://www.x.com/"> |
5 | 5 | * <img style={{display: "block"}} src="https://authjs.dev/img/providers/twitter.svg" height="48" />
|
6 | 6 | * </a>
|
7 | 7 | * </div>
|
|
11 | 11 | import type { OAuthConfig, OAuthUserConfig } from "./index.js"
|
12 | 12 |
|
13 | 13 | /**
|
14 |
| - * [Users lookup](https://developer.twitter.com/en/docs/twitter-api/users/lookup/api-reference/get-users-me) |
| 14 | + * [Users lookup](https://developer.x.com/en/docs/twitter-api/users/lookup/api-reference/get-users-me) |
15 | 15 | */
|
16 | 16 | export interface TwitterProfile {
|
17 | 17 | data: {
|
@@ -125,7 +125,7 @@ export interface TwitterProfile {
|
125 | 125 | *
|
126 | 126 | * ### Resources
|
127 | 127 | *
|
128 |
| - * - [Twitter App documentation](https://developer.twitter.com/en/apps) |
| 128 | + * - [Twitter App documentation](https://developer.x.com/en/apps) |
129 | 129 | *
|
130 | 130 | * ## OAuth 2
|
131 | 131 | * 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(
|
185 | 185 | type: "oauth",
|
186 | 186 | checks: ["pkce", "state"],
|
187 | 187 | authorization:
|
188 |
| - "https://twitter.com/i/oauth2/authorize?scope=users.read tweet.read offline.access", |
189 |
| - token: "https://api.twitter.com/2/oauth2/token", |
| 188 | + "https://x.com/i/oauth2/authorize?scope=users.read tweet.read offline.access", |
| 189 | + token: "https://api.x.com/2/oauth2/token", |
190 | 190 | userinfo:
|
191 |
| - "https://api.twitter.com/2/users/me?user.fields=profile_image_url", |
| 191 | + "https://api.x.com/2/users/me?user.fields=profile_image_url", |
192 | 192 | profile({ data }) {
|
193 | 193 | return {
|
194 | 194 | id: data.id,
|
|
0 commit comments