Skip to content

chatgptAccountIdFromToken

function chatgptAccountIdFromToken(token?): string | undefined;

Defined in: core/src/auth/flows.ts:220

The ChatGPT-Account-Id the Codex backend requires. OpenAI puts it at chatgpt_account_id, under https://api.openai.com/auth, or as organizations[0].id, depending on the token.

Parameter Type
token? string

string | undefined