feat: add UserInfo request to JSON-RPC server (#3428)

This adds a simple endpoint that provides the email address encoded in
`$CODEX_HOME/auth.json`.

As noted, for now, we do not hit the server to verify this is the user's
true email address.
This commit is contained in:
Michael Bolin
2025-09-10 17:03:35 -07:00
committed by GitHub
parent 44262d8fd8
commit 65f3528cad
8 changed files with 119 additions and 0 deletions

1
codex-rs/Cargo.lock generated
View File

@@ -769,6 +769,7 @@ version = "0.0.0"
dependencies = [
"anyhow",
"assert_cmd",
"base64",
"codex-arg0",
"codex-common",
"codex-core",