File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed
Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ function generateCodeChallenge(verifier: string): string {
3737
3838// Store the code verifier and state during the OAuth flow
3939let 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)
You can’t perform that action at this time.
0 commit comments