The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(oauth): reorder token validation before URL construction
Steven Enamakelce569056583f
diff --git a/crates/openhuman-core/src/security/credentials/ops/oauth.rs b/crates/openhuman-core/src/security/credentials/ops/oauth.rsindex 68f3c8ac75..eb594db538 100644--- a/crates/openhuman-core/src/security/credentials/ops/oauth.rs+++ b/crates/openhuman-core/src/security/credentials/ops/oauth.rs@@ -19,8 +19,8 @@ pub async fn oauth_fetch_client_key(config: &Config,integration_id: &str,) -> Result<RpcOutcome<serde_json::Value>, String> {- let api_url = crate::backend::require_base_url(&config.api_url)?;let token = get_session_token(config)?.ok_or_else(|| "session JWT required".to_string())?;+ let api_url = crate::backend::require_base_url(&config.api_url)?;let client = BackendClient::new(&api_url).map_err(|e| e.to_string())?;// `flatten_authed_error` keeps a 401 on the `SESSION_EXPIRED` sentinel (and// a missing transport on `BACKEND_UNAVAILABLE:`) instead of an opaque string.