MCPcopy Create free account
hub / github.com/BigBoot/AutoKuma / load_auth_token

Function load_auth_token

kuma-cli/src/utils.rs:172–180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

170}
171
172pub(crate) async fn load_auth_token() -> Option<String> {
173 if let Some(auth_file) =
174 dirs::config_local_dir().map(|dir| dir.join("autokuma").join("auth.txt"))
175 {
176 return fs::read_to_string(auth_file).await.ok();
177 }
178
179 None
180}
181
182pub(crate) trait CollectOrUnwrap: Iterator {
183 fn collect_or_unwrap(self) -> OneOrMany<Self::Item>

Callers 1

connectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected