From 509ead893429d838ea66c4bc7e8905199ce91e1b Mon Sep 17 00:00:00 2001 From: liquidleif <56021265+liquidleif@users.noreply.github.com> Date: Thu, 3 Apr 2025 16:18:24 +0200 Subject: [PATCH] fix(oauth-providers): Update twitter authorization url (#1099) Closes #1100 * Update twitter authorization url The twitter authorization URL is outdated. * add a changeset --- .changeset/violet-melons-glow.md | 5 +++++ packages/oauth-providers/src/providers/x/authFlow.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/violet-melons-glow.md diff --git a/.changeset/violet-melons-glow.md b/.changeset/violet-melons-glow.md new file mode 100644 index 00000000..f3c0e135 --- /dev/null +++ b/.changeset/violet-melons-glow.md @@ -0,0 +1,5 @@ +--- +'@hono/oauth-providers': patch +--- + +fix: Update twitter authorization url diff --git a/packages/oauth-providers/src/providers/x/authFlow.ts b/packages/oauth-providers/src/providers/x/authFlow.ts index 4bbf7379..6dabb965 100644 --- a/packages/oauth-providers/src/providers/x/authFlow.ts +++ b/packages/oauth-providers/src/providers/x/authFlow.ts @@ -74,7 +74,7 @@ export class AuthFlow { code_challenge: this.code_challenge, code_challenge_method: 'S256', }) - return `https://twitter.com/i/oauth2/authorize?${parsedOptions}` + return `https://x.com/i/oauth2/authorize?${parsedOptions}` } private async getTokenFromCode() {