diff --git a/open-sse/config/constants.ts b/open-sse/config/constants.ts index 0a14c1c644f..aaa6e442a07 100644 --- a/open-sse/config/constants.ts +++ b/open-sse/config/constants.ts @@ -67,8 +67,8 @@ export const OAUTH_ENDPOINTS = { auth: "https://auth.openai.com/oauth/authorize", }, anthropic: { - token: "https://console.anthropic.com/v1/oauth/token", - auth: "https://console.anthropic.com/v1/oauth/authorize", + token: "https://api.anthropic.com/v1/oauth/token", + auth: "https://api.anthropic.com/v1/oauth/authorize", }, qwen: { token: "https://chat.qwen.ai/api/v1/oauth2/token", // From CLIProxyAPI diff --git a/src/lib/oauth/constants/oauth.ts b/src/lib/oauth/constants/oauth.ts index ea10329cc62..586bc4abb4f 100644 --- a/src/lib/oauth/constants/oauth.ts +++ b/src/lib/oauth/constants/oauth.ts @@ -36,7 +36,7 @@ import { buildGitLabOAuthEndpoints, GITLAB_DUO_DEFAULT_BASE_URL } from "../gitla export const CLAUDE_CONFIG = { clientId: process.env.CLAUDE_OAUTH_CLIENT_ID || "9d1c250a-e61b-44d9-88ed-5944d1962f5e", authorizeUrl: "https://claude.ai/oauth/authorize", - tokenUrl: "https://console.anthropic.com/v1/oauth/token", + tokenUrl: "https://api.anthropic.com/v1/oauth/token", redirectUri: process.env.CLAUDE_CODE_REDIRECT_URI || "https://platform.claude.com/oauth/code/callback", scopes: [