Skip to content

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

test(auth): login callbacks are no longer public

Steven Enamakel36b6f5ba6805
diff --git a/crates/openhuman-core/src/core/auth_tests.rs b/crates/openhuman-core/src/core/auth_tests.rs
index 90841c8445..e3c24a2d8a 100644
--- a/crates/openhuman-core/src/core/auth_tests.rs
+++ b/crates/openhuman-core/src/core/auth_tests.rs
@@ -135,8 +135,11 @@ fn extract_query_token_url_decodes_value() {
#[cfg(feature = "http-server")]
#[test]
-fn public_paths_include_desktop_auth_callback() {
+fn login_callbacks_are_no_longer_public() {
+ // The desktop `/auth` fallback and `/auth/telegram` exchanged login tokens
+ // inside the core; the host (openhuman-session) owns that now.
assert!(!PUBLIC_PATHS.contains(&"/auth"));
+ assert!(!PUBLIC_PATHS.contains(&"/auth/telegram"));
}
#[cfg(feature = "http-server")]