Authentication status.
(&self)
| 341 | |
| 342 | /// Authentication status. |
| 343 | pub async fn auth_status(&self) -> AuthStatus { |
| 344 | match auth::get_for_url(&self.mcp_name, &self.server_url).await { |
| 345 | Some(entry) => match auth::is_token_expired(&entry) { |
| 346 | Some(true) => AuthStatus::Expired, |
| 347 | Some(false) => AuthStatus::Authenticated, |
| 348 | None => AuthStatus::NotAuthenticated, |
| 349 | }, |
| 350 | None => AuthStatus::NotAuthenticated, |
| 351 | } |
| 352 | } |
| 353 | |
| 354 | pub fn mcp_name(&self) -> &str { |
| 355 | &self.mcp_name |
nothing calls this directly
no test coverage detected