(state: &StoredProviderCredentialRefreshState)
| 607 | } |
| 608 | |
| 609 | pub fn refresh_scopes(state: &StoredProviderCredentialRefreshState) -> Vec<String> { |
| 610 | if !state.scopes.is_empty() { |
| 611 | return state.scopes.clone(); |
| 612 | } |
| 613 | material_scopes(&state.material) |
| 614 | } |
| 615 | |
| 616 | pub fn material_scopes(material: &HashMap<String, String>) -> Vec<String> { |
| 617 | material_value(material, &["scope", "scopes"]) |
no test coverage detected