MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / get_session_token

Function get_session_token

apps/desktop/src-tauri/src/lib.rs:61–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59/// Get the sealed session token for API calls
60#[tauri::command]
61async fn get_session_token() -> Result<Option<String>, String> {
62 match auth::get_session() {
63 Ok(Some(session)) => Ok(Some(session.sealed_session)),
64 Ok(None) => Ok(None),
65 Err(e) => Err(format!("Failed to get session: {}", e)),
66 }
67}
68
69/// Start OAuth login flow - opens system browser
70#[tauri::command]

Callers

nothing calls this directly

Calls 1

get_sessionFunction · 0.85

Tested by

no test coverage detected