Skip to content

login: device code text#4616

Merged
rakesh-oai merged 4 commits intomainfrom
cli-device-code
Oct 3, 2025
Merged

login: device code text#4616
rakesh-oai merged 4 commits intomainfrom
cli-device-code

Conversation

@fouad-openai
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Contributor

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting

Comment thread codex-rs/login/src/device_code_auth.rs Outdated
Comment thread codex-rs/login/src/device_code_auth.rs Outdated
println!(
"To authenticate, visit: {}/deviceauth/authorize and enter code: {}",
api_base_url, uc.user_code
"To authenticate:\n 1. Open in your browser: {BOLD}https://auth.openai.com/codex/device{RESET}\n 2. Enter the one-time code below within 15 minutes:\n\n {BOLD}{}{RESET}\n",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT: can we allow staging URL, it makes testing easier.

Comment thread codex-rs/login/src/device_code_auth.rs Outdated
fn print_colored_warning_device_code() {
// ANSI escape code for bright yellow
const YELLOW: &str = "\x1b[93m";
const BOLD: &str = "\x1b[1m";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT: can we reuse?

Comment thread codex-rs/login/src/device_code_auth.rs Outdated
@rakesh-oai rakesh-oai merged commit 665341c into main Oct 3, 2025
20 checks passed
@rakesh-oai rakesh-oai deleted the cli-device-code branch October 3, 2025 23:35
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants