Resolve the path to the auth JSON file.
()
| 50 | } |
| 51 | /// Resolve the path to the auth JSON file. |
| 52 | fn 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. |
| 60 | async fn read_all() -> HashMap<String, AuthEntry> { |