Skip to content

Commit ef53c20

Browse files
fix(oauth): remove base64 obfuscation from public OAuth client IDs (#96537)
1 parent 491e1e5 commit ef53c20

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/llm/utils/oauth/anthropic.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ type NodeApis = {
4242
let nodeApis: NodeApis | null = null;
4343
let nodeApisPromise: Promise<NodeApis> | null = null;
4444

45-
const decode = (s: string) => atob(s);
46-
const CLIENT_ID = decode("OWQxYzI1MGEtZTYxYi00NGQ5LTg4ZWQtNTk0NGQxOTYyZjVl");
45+
const CLIENT_ID = "9d1c250a-e61b-44d9-88ed-5944d1962f5e";
4746
const AUTHORIZE_URL = "https://claude.ai/oauth/authorize";
4847
const TOKEN_URL = "https://platform.claude.com/v1/oauth/token";
4948
const DEFAULT_CALLBACK_HOST = "127.0.0.1";

src/llm/utils/oauth/github-copilot.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ type CopilotCredentials = OAuthCredentials & {
2020
enterpriseUrl?: string;
2121
};
2222

23-
const decode = (s: string) => atob(s);
24-
const CLIENT_ID = decode("SXYxLmI1MDdhMDhjODdlY2ZlOTg=");
23+
const CLIENT_ID = "Iv1.b507a08c87ecfe98";
2524

2625
const COPILOT_HEADERS = {
2726
"User-Agent": "GitHubCopilotChat/0.35.0",

0 commit comments

Comments
 (0)