Use Claude Code with your ChatGPT, Kimi, Cursor or Grok subscription via a local Anthropic-compatible proxy
Rust
jwt: also accept flat-dotted chatgpt_account_id claim form
Raine Virta40fe2eec5b41
diff --git a/src/auth/jwt.ts b/src/auth/jwt.tsindex ee5e75d..faf6cc3 100644--- a/src/auth/jwt.ts+++ b/src/auth/jwt.ts@@ -5,6 +5,7 @@ export interface IdTokenClaims {"https://api.openai.com/auth"?: {chatgpt_account_id?: string}+ "https://api.openai.com/auth.chatgpt_account_id"?: string}export function parseJwtClaims(token: string): IdTokenClaims | undefined {@@ -21,6 +22,7 @@ export function extractAccountIdFromClaims(claims: IdTokenClaims): string | undereturn (claims.chatgpt_account_id ||claims["https://api.openai.com/auth"]?.chatgpt_account_id ||+ claims["https://api.openai.com/auth.chatgpt_account_id"] ||claims.organizations?.[0]?.id)}