Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(credential): handle missing credential file gracefully

Steven Enamakelb41021f93e5e
diff --git a/crates/openhuman-tinyhumans/src/session/credential.rs b/crates/openhuman-tinyhumans/src/session/credential.rs
index b16289f1a7..8be62af5f1 100644
--- a/crates/openhuman-tinyhumans/src/session/credential.rs
+++ b/crates/openhuman-tinyhumans/src/session/credential.rs
@@ -143,7 +143,7 @@ fn user_id_from_object(obj: &serde_json::Map<String, Value>) -> Option<String> {
/// The user id inside a `/auth/me`-shaped payload: top-level `id`/`_id`/
/// `userId`, or the same under `data` or `user`. Same rules as the core's
-/// `api::rest::user_id_from_profile_payload`.
+/// `openhuman_core::security::credentials::jwt::user_id_from_profile_payload`.
pub fn user_id_from_profile_payload(payload: &Value) -> Option<String> {
let obj = payload.as_object()?;
if let Some(data) = obj.get("data").and_then(Value::as_object) {