mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 01:10:23 +08:00
Fix OAuth token import and table filters
This commit is contained in:
@@ -492,6 +492,14 @@ fn enrich_generic_identity(
|
||||
.or_insert(value);
|
||||
}
|
||||
}
|
||||
if let Some(profile) = claims
|
||||
.get("https://api.openai.com/profile")
|
||||
.and_then(Value::as_object)
|
||||
{
|
||||
if let Some(value) = profile.get("email").cloned() {
|
||||
auth_config.entry("email".to_string()).or_insert(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user