Store the OAuth state parameter.
(mcp_name: &str, state: &str)
| 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(); |
| 162 | entry.oauth_state = Some(state.to_string()); |
| 163 | set(mcp_name, entry, None).await |
| 164 | } |
| 165 | |
| 166 | /// Read the stored OAuth state. |
| 167 | pub async fn get_oauth_state(mcp_name: &str) -> Option<String> { |
no test coverage detected