MCPcopy Create free account
hub / github.com/Roy3838/Observer / load

Method load

cli/src/auth.rs:55–59  ·  view source on GitHub ↗

Load tokens from file

()

Source from the content-addressed store, hash-verified

53
54 /// Load tokens from file
55 pub fn load() -> Option<Self> {
56 let path = Self::auth_path()?;
57 let contents = fs::read_to_string(&path).ok()?;
58 serde_json::from_str(&contents).ok()
59 }
60
61 /// Save tokens to file
62 pub fn save(&self) -> io::Result<()> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected