Fix OAuth token import and table filters

This commit is contained in:
fawney19
2026-05-01 02:14:49 +08:00
parent 9570e5c2c1
commit 4fc7cecf30
54 changed files with 3160 additions and 727 deletions

View File

@@ -119,11 +119,15 @@ fn extract_codex_auth_fields_from_object(source: &Map<String, Value>) -> Map<Str
let auth = source
.get("https://api.openai.com/auth")
.and_then(Value::as_object);
let profile = source
.get("https://api.openai.com/profile")
.and_then(Value::as_object);
let mut result = Map::new();
if let Some(email) = first_json_non_empty_string([
source.get("email").cloned(),
auth.and_then(|value| value.get("email")).cloned(),
profile.and_then(|value| value.get("email")).cloned(),
]) {
result.insert("email".to_string(), json!(email));
}