(&self, provider_id: &str, auth: AuthInfo)
| 92 | } |
| 93 | |
| 94 | pub async fn set(&self, provider_id: &str, auth: AuthInfo) { |
| 95 | { |
| 96 | let mut creds = self.credentials.write().await; |
| 97 | creds.insert(provider_id.to_string(), auth); |
| 98 | } |
| 99 | if let Err(error) = self.persist().await { |
| 100 | tracing::warn!(%error, provider_id, "failed to persist auth store"); |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | pub async fn remove(&self, provider_id: &str) { |
| 105 | { |
no test coverage detected