MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / has_stored_tokens

Method has_stored_tokens

crates/opencode-mcp/src/oauth.rs:335–340  ·  view source on GitHub ↗

Whether tokens exist on disk for this server + URL combination.

(&self)

Source from the content-addressed store, hash-verified

333
334 /// Whether tokens exist on disk for this server + URL combination.
335 pub async fn has_stored_tokens(&self) -> bool {
336 auth::get_for_url(&self.mcp_name, &self.server_url)
337 .await
338 .and_then(|e| e.tokens)
339 .is_some()
340 }
341
342 /// Authentication status.
343 pub async fn auth_status(&self) -> AuthStatus {

Callers

nothing calls this directly

Calls 1

get_for_urlFunction · 0.85

Tested by

no test coverage detected