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

Method register

src/oauth/mod.rs:217–221  ·  view source on GitHub ↗
(&mut self, provider: Arc<dyn OAuthProvider>)

Source from the content-addressed store, hash-verified

215 }
216
217 pub fn register(&mut self, provider: Arc<dyn OAuthProvider>) {
218 let id = provider.id().to_string();
219 debug!(provider = %id, "Registering OAuth provider");
220 self.providers.insert(id, provider);
221 }
222
223 /// Load persisted tokens from disk for all registered providers.
224 pub async fn load_tokens(&self) -> Result<(), OAuthError> {

Calls 1

idMethod · 0.45