(&self, provider_id: &str)
| 117 | } |
| 118 | |
| 119 | pub async fn get_api_key(&self, provider_id: &str) -> Option<String> { |
| 120 | let creds = self.credentials.read().await; |
| 121 | match creds.get(provider_id) { |
| 122 | Some(AuthInfo::Api { key }) => Some(key.clone()), |
| 123 | _ => None, |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | pub async fn get_oauth_token(&self, provider_id: &str) -> Option<String> { |
| 128 | let creds = self.credentials.read().await; |