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

Method token

src/api_client.rs:49–51  ·  view source on GitHub ↗

The token this client currently authenticates with, if any. Note: this is not necessarily the token the client was built with — in CI with OIDC, [`Self::set_token`] is called before each upload to rotate the credentials. See [`crate::run_environment::RunEnvironmentProvider::refresh_token`].

(&self)

Source from the content-addressed store, hash-verified

47 /// in CI with OIDC, [`Self::set_token`] is called before each upload to
48 /// rotate the credentials. See [`crate::run_environment::RunEnvironmentProvider::refresh_token`].
49 pub fn token(&self) -> Option<&str> {
50 self.token.as_deref()
51 }
52
53 /// Replace the token this client uses for authenticated GraphQL
54 /// requests and that the uploader pulls for its `Authorization`

Callers 4

get_upload_metadataMethod · 0.80
retrieve_upload_dataFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected