Skip to content

Commit d1f8780

Browse files
committed
remove dead code
1 parent e029967 commit d1f8780

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

cli/src/utils/claude-oauth.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ function generateCodeChallenge(verifier: string): string {
3737

3838
// Store the code verifier and state during the OAuth flow
3939
let pendingCodeVerifier: string | null = null
40-
let pendingState: string | null = null
4140

4241
/**
4342
* Start the OAuth authorization flow.
@@ -48,12 +47,8 @@ export function startOAuthFlow(): { codeVerifier: string; authUrl: string } {
4847
const codeVerifier = generateCodeVerifier()
4948
const codeChallenge = generateCodeChallenge(codeVerifier)
5049

51-
// Generate a random state parameter for CSRF protection
52-
const state = crypto.randomBytes(16).toString('hex')
53-
5450
// Store the code verifier and state for later use
5551
pendingCodeVerifier = codeVerifier
56-
pendingState = state
5752

5853
// Build the authorization URL
5954
// Use claude.ai for Max subscription (same as opencode)

0 commit comments

Comments
 (0)