MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / consume_login_session

Method consume_login_session

src/api_client.rs:466–483  ·  view source on GitHub ↗
(
        &self,
        session_id: &str,
    )

Source from the content-addressed store, hash-verified

464 }
465
466 pub async fn consume_login_session(
467 &self,
468 session_id: &str,
469 ) -> Result<ConsumeLoginSessionPayload> {
470 let response = self
471 .unauthenticated_gql_client
472 .query_with_vars_unwrap::<ConsumeLoginSessionData, ConsumeLoginSessionVars>(
473 include_str!("queries/ConsumeLoginSession.gql"),
474 ConsumeLoginSessionVars {
475 session_id: session_id.to_string(),
476 },
477 )
478 .await;
479 match response {
480 Ok(response) => Ok(response.consume_login_session),
481 Err(err) => bail!("Failed to use login session: {err}"),
482 }
483 }
484
485 pub async fn compare_runs(&self, vars: CompareRunsVars) -> Result<CompareRunsOutcome> {
486 let response = self

Callers 1

loginFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected