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

Function auth_file_path

crates/opencode-mcp/src/auth.rs:52–57  ·  view source on GitHub ↗

Resolve the path to the auth JSON file.

()

Source from the content-addressed store, hash-verified

50}
51/// Resolve the path to the auth JSON file.
52fn auth_file_path() -> PathBuf {
53 let data_dir = dirs::data_dir()
54 .unwrap_or_else(|| PathBuf::from("."))
55 .join("opencode");
56 data_dir.join("mcp-auth.json")
57}
58
59/// Read the entire auth store from disk.
60async fn read_all() -> HashMap<String, AuthEntry> {

Callers 2

read_allFunction · 0.85
write_allFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected