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

Method cached_api_key

crates/opencode-plugin/src/subprocess/auth.rs:78–80  ·  view source on GitHub ↗

The cached API key from the last `load()` call, if any.

(&self)

Source from the content-addressed store, hash-verified

76
77 /// The cached API key from the last `load()` call, if any.
78 pub async fn cached_api_key(&self) -> Option<String> {
79 self.cached_api_key.read().await.clone()
80 }
81
82 // -- Auth flow ----------------------------------------------------------
83

Callers

nothing calls this directly

Calls 2

readMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected