From 43d8dbc9d3b61b275dd531195fc244b641cf051f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=82CHES?= Date: Fri, 20 Mar 2026 10:27:20 -0600 Subject: [PATCH] fix: update Anthropic OAuth endpoints to platform.claude.com (#1608) Anthropic migrated their OAuth infrastructure from console.anthropic.com to platform.claude.com. The old URLs are decommissioned, breaking all OAuth login flows. Closes #1587 Co-authored-by: Claude Opus 4.6 (1M context) --- packages/pi-ai/src/utils/oauth/anthropic.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/pi-ai/src/utils/oauth/anthropic.ts b/packages/pi-ai/src/utils/oauth/anthropic.ts index f3a349dc4..861e26409 100644 --- a/packages/pi-ai/src/utils/oauth/anthropic.ts +++ b/packages/pi-ai/src/utils/oauth/anthropic.ts @@ -8,8 +8,8 @@ import type { OAuthCredentials, OAuthLoginCallbacks, OAuthProviderInterface } fr const decode = (s: string) => atob(s); const CLIENT_ID = decode("OWQxYzI1MGEtZTYxYi00NGQ5LTg4ZWQtNTk0NGQxOTYyZjVl"); const AUTHORIZE_URL = "https://claude.ai/oauth/authorize"; -const TOKEN_URL = "https://console.anthropic.com/v1/oauth/token"; -const REDIRECT_URI = "https://console.anthropic.com/oauth/code/callback"; +const TOKEN_URL = "https://platform.claude.com/v1/oauth/token"; +const REDIRECT_URI = "https://platform.claude.com/oauth/code/callback"; const SCOPES = "org:create_api_key user:profile user:inference"; /**