()
| 59 | /// Get the sealed session token for API calls |
| 60 | #[tauri::command] |
| 61 | async 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] |
nothing calls this directly
no test coverage detected