mirror of
https://github.com/openai/codex.git
synced 2026-09-17 12:23:33 +00:00
Auth fix
This commit is contained in:
@@ -553,7 +553,12 @@ async fn handle_auth_command(
|
||||
if let Some(auth_widget) = onboarding_screen.auth_widget_mut() {
|
||||
match result {
|
||||
Ok(LoginAccountResponse::Chatgpt { login_id, auth_url }) => {
|
||||
auth_widget.apply_chatgpt_login_started(login_id, auth_url);
|
||||
auth_widget.apply_chatgpt_login_started(login_id, auth_url.clone());
|
||||
if let Err(err) = webbrowser::open(&auth_url) {
|
||||
auth_widget.show_login_request_error(format!(
|
||||
"Failed to open browser for {auth_url}: {err}"
|
||||
));
|
||||
}
|
||||
}
|
||||
Ok(response) => {
|
||||
auth_widget.show_login_request_error(format!(
|
||||
|
||||
Reference in New Issue
Block a user