Skip to content

Commit 2f312a8

Browse files
committed
fix(oauth): remove base64 obfuscation from public OAuth client IDs
1 parent 5eec215 commit 2f312a8

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 CALLBACK_HOST = process.env.OPENCLAW_OAUTH_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
@@ -16,8 +16,7 @@ type CopilotCredentials = OAuthCredentials & {
1616
enterpriseUrl?: string;
1717
};
1818

19-
const decode = (s: string) => atob(s);
20-
const CLIENT_ID = decode("SXYxLmI1MDdhMDhjODdlY2ZlOTg=");
19+
const CLIENT_ID = "Iv1.b507a08c87ecfe98";
2120

2221
const COPILOT_HEADERS = {
2322
"User-Agent": "GitHubCopilotChat/0.35.0",

0 commit comments

Comments
 (0)