Skip to content

Support phone login auth organization accounts#100

Merged
Loongphy merged 2 commits into
Loongphy:mainfrom
mituyang:codex-support-phone-login
May 13, 2026
Merged

Support phone login auth organization accounts#100
Loongphy merged 2 commits into
Loongphy:mainfrom
mituyang:codex-support-phone-login

Conversation

@mituyang
Copy link
Copy Markdown
Contributor

@mituyang mituyang commented May 13, 2026

Summary

  • Support phone-login auth files that omit legacy account id fields by falling back to JWT organizations[].id.
  • Document the ChatGPT account context priority: tokens.account_id, JWT chatgpt_account_id, then default/first JWT organizations[].id.
  • Clarify that organization fallback stores an org-... context in chatgpt_account_id and record_key when legacy ids are absent.
  • Add coverage for organization-based auth parsing.

Validation

  • HOME=/tmp/codex-auth-pr100-list zig build run -- list
  • HOME=/tmp/codex-auth-pr100-test zig build test
  • Manual directory import reproduction passed without MissingAccountId or allocator leaks.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 13, 2026

Open in StackBlitz

@loongphy/codex-auth-darwin-arm64

npx https://pkg.pr.new/@loongphy/codex-auth-darwin-arm64@f4b71b0

@loongphy/codex-auth-darwin-x64

npx https://pkg.pr.new/@loongphy/codex-auth-darwin-x64@f4b71b0

@loongphy/codex-auth-linux-arm64

npx https://pkg.pr.new/@loongphy/codex-auth-linux-arm64@f4b71b0

@loongphy/codex-auth-linux-x64

npx https://pkg.pr.new/@loongphy/codex-auth-linux-x64@f4b71b0

@loongphy/codex-auth-win32-arm64

npx https://pkg.pr.new/@loongphy/codex-auth-win32-arm64@f4b71b0

@loongphy/codex-auth-win32-x64

npx https://pkg.pr.new/@loongphy/codex-auth-win32-x64@f4b71b0

@loongphy/codex-auth

npx https://pkg.pr.new/@loongphy/codex-auth@f4b71b0

commit: f4b71b0

@Loongphy Loongphy merged commit 04afba3 into Loongphy:main May 13, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants