Store the PKCE code verifier.
(
mcp_name: &str,
code_verifier: &str,
)
| 140 | |
| 141 | /// Store the PKCE code verifier. |
| 142 | pub async fn update_code_verifier( |
| 143 | mcp_name: &str, |
| 144 | code_verifier: &str, |
| 145 | ) -> Result<(), std::io::Error> { |
| 146 | let mut entry = get(mcp_name).await.unwrap_or_default(); |
| 147 | entry.code_verifier = Some(code_verifier.to_string()); |
| 148 | set(mcp_name, entry, None).await |
| 149 | } |
| 150 | |
| 151 | /// Clear the stored code verifier. |
| 152 | pub async fn clear_code_verifier(mcp_name: &str) -> Result<(), std::io::Error> { |
no test coverage detected