Clear the stored OAuth state.
(mcp_name: &str)
| 170 | |
| 171 | /// Clear the stored OAuth state. |
| 172 | pub async fn clear_oauth_state(mcp_name: &str) -> Result<(), std::io::Error> { |
| 173 | if let Some(mut entry) = get(mcp_name).await { |
| 174 | entry.oauth_state = None; |
| 175 | set(mcp_name, entry, None).await?; |
| 176 | } |
| 177 | Ok(()) |
| 178 | } |
| 179 | |
| 180 | /// Check whether stored tokens are expired. |
| 181 | /// Returns `None` if no tokens exist, `Some(false)` if not expired (or no |
no test coverage detected