Browse Source

chore: use client_id everywhere (#260)

niba 8 months ago
parent
commit
2fd0e7dd6b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/opencode/src/auth/anthropic.ts

+ 2 - 2
packages/opencode/src/auth/anthropic.ts

@@ -8,7 +8,7 @@ export namespace AuthAnthropic {
     const pkce = await generatePKCE()
     const pkce = await generatePKCE()
     const url = new URL("https://claude.ai/oauth/authorize", import.meta.url)
     const url = new URL("https://claude.ai/oauth/authorize", import.meta.url)
     url.searchParams.set("code", "true")
     url.searchParams.set("code", "true")
-    url.searchParams.set("client_id", "9d1c250a-e61b-44d9-88ed-5944d1962f5e")
+    url.searchParams.set("client_id", CLIENT_ID)
     url.searchParams.set("response_type", "code")
     url.searchParams.set("response_type", "code")
     url.searchParams.set(
     url.searchParams.set(
       "redirect_uri",
       "redirect_uri",
@@ -38,7 +38,7 @@ export namespace AuthAnthropic {
         code: splits[0],
         code: splits[0],
         state: splits[1],
         state: splits[1],
         grant_type: "authorization_code",
         grant_type: "authorization_code",
-        client_id: "9d1c250a-e61b-44d9-88ed-5944d1962f5e",
+        client_id: CLIENT_ID,
         redirect_uri: "https://console.anthropic.com/oauth/code/callback",
         redirect_uri: "https://console.anthropic.com/oauth/code/callback",
         code_verifier: verifier,
         code_verifier: verifier,
       }),
       }),