Skip to content

Commit 2fd0e7d

Browse files
authored
chore: use client_id everywhere (anomalyco#260)
1 parent d50b7ad commit 2fd0e7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/opencode/src/auth/anthropic.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export namespace AuthAnthropic {
88
const pkce = await generatePKCE()
99
const url = new URL("https://claude.ai/oauth/authorize", import.meta.url)
1010
url.searchParams.set("code", "true")
11-
url.searchParams.set("client_id", "9d1c250a-e61b-44d9-88ed-5944d1962f5e")
11+
url.searchParams.set("client_id", CLIENT_ID)
1212
url.searchParams.set("response_type", "code")
1313
url.searchParams.set(
1414
"redirect_uri",
@@ -38,7 +38,7 @@ export namespace AuthAnthropic {
3838
code: splits[0],
3939
state: splits[1],
4040
grant_type: "authorization_code",
41-
client_id: "9d1c250a-e61b-44d9-88ed-5944d1962f5e",
41+
client_id: CLIENT_ID,
4242
redirect_uri: "https://console.anthropic.com/oauth/code/callback",
4343
code_verifier: verifier,
4444
}),

0 commit comments

Comments
 (0)