(&self, provider_id: &str)
| 125 | } |
| 126 | |
| 127 | pub async fn get_oauth_token(&self, provider_id: &str) -> Option<String> { |
| 128 | let creds = self.credentials.read().await; |
| 129 | match creds.get(provider_id) { |
| 130 | Some(AuthInfo::OAuth { access, .. }) => Some(access.clone()), |
| 131 | _ => None, |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | pub async fn list(&self) -> HashMap<String, AuthInfo> { |
| 136 | let creds = self.credentials.read().await; |