mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-11-29 02:39:13 +00:00
The refresh reread auth.json before writing the rotated tokens but only checked it was still ChatGPT mode, not that it was still the same login. A `codex login` account switch, or a second CodeBurn process refreshing the same credential, landing while our refresh was in flight let the late response splice one account's tokens into another's document: a new account id over an old refresh token, or an older refresh token over a newer one. Either signs the user out or binds them to the wrong account. The login the grant belongs to is now captured before the grant and compared against the reread document on account id, refresh token and id-token subject. A demonstrated mismatch discards the write and says so. An unreadable or key-sparse file is not a mismatch and still writes, so a rotated token is never dropped. Both the CLI and the Electron copy. |
||
|---|---|---|
| .. | ||
| quota | ||
| cli-win32-reap.test.ts | ||
| cli-win32-tree-kill.test.ts | ||
| cli.test.ts | ||
| cli.ts | ||
| main.test.ts | ||
| main.ts | ||
| menubar.test.ts | ||
| menubar.ts | ||
| preload.ts | ||
| telemetry.test.ts | ||
| telemetry.ts | ||
| tray-settings-atomic.test.ts | ||
| tray-settings.test.ts | ||
| tray-settings.ts | ||
| updates.test.ts | ||
| updates.ts | ||