(&self, provider_id: &str)
| 102 | } |
| 103 | |
| 104 | pub async fn remove(&self, provider_id: &str) { |
| 105 | { |
| 106 | let mut creds = self.credentials.write().await; |
| 107 | creds.remove(provider_id); |
| 108 | } |
| 109 | if let Err(error) = self.persist().await { |
| 110 | tracing::warn!(%error, provider_id, "failed to persist auth store"); |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | pub async fn has_auth(&self, provider_id: &str) -> bool { |
| 115 | let creds = self.credentials.read().await; |
no test coverage detected