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)
| 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` |
no outgoing calls
no test coverage detected