What is the supported Codex auth flow for native mobile clients? #24988
RobinSrimal
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We are building a mobile-first native client and want to understand whether Codex / ChatGPT subscription auth is intended to work outside the CLI/desktop model.
Today the browser login flow appears to rely on a loopback redirect:
http://localhost:1455/auth/callback
That works on desktop/CLI because the process stays alive while the browser is open. On mobile, opening Safari/Chrome can background or suspend the app, so an in-app localhost listener may not survive long enough to receive the callback.
Device-code auth seems like a possible alternative, but it appears to have workspace/account constraints. In testing, the browser accepted the device code, but the final token exchange failed.
Questions:
A clear statement on the supported path would help avoid building against accidental CLI-only behavior.
Beta Was this translation helpful? Give feedback.
All reactions