Clear the stored code verifier.
(mcp_name: &str)
| 150 | |
| 151 | /// Clear the stored code verifier. |
| 152 | pub async fn clear_code_verifier(mcp_name: &str) -> Result<(), std::io::Error> { |
| 153 | if let Some(mut entry) = get(mcp_name).await { |
| 154 | entry.code_verifier = None; |
| 155 | set(mcp_name, entry, None).await?; |
| 156 | } |
| 157 | Ok(()) |
| 158 | } |
| 159 | /// Store the OAuth state parameter. |
| 160 | pub async fn update_oauth_state(mcp_name: &str, state: &str) -> Result<(), std::io::Error> { |
| 161 | let mut entry = get(mcp_name).await.unwrap_or_default(); |
no test coverage detected