MCPcopy Create free account
hub / github.com/clawshell/clawshell / remove

Method remove

src/oauth/storage.rs:65–72  ·  view source on GitHub ↗

Remove tokens for a provider.

(&self, provider_id: &str)

Source from the content-addressed store, hash-verified

63
64 /// Remove tokens for a provider.
65 pub fn remove(&self, provider_id: &str) -> Result<(), std::io::Error> {
66 let path = self.token_path(provider_id);
67 if path.exists() {
68 std::fs::remove_file(&path)?;
69 debug!(provider = %provider_id, path = %path.display(), "OAuth tokens removed");
70 }
71 Ok(())
72 }
73}
74
75#[cfg(test)]

Callers 11

handle_requestFunction · 0.80
maybe_translate_responseFunction · 0.80
test_removeFunction · 0.80
test_remove_nonexistentFunction · 0.80
cleanup_legacy_oauth_vfsFunction · 0.80
applyFunction · 0.80

Calls 1

token_pathMethod · 0.80

Tested by 2

test_removeFunction · 0.64
test_remove_nonexistentFunction · 0.64