(filepath: PathBuf)
| 68 | } |
| 69 | |
| 70 | pub fn with_filepath(filepath: PathBuf) -> Self { |
| 71 | Self { |
| 72 | credentials: Arc::new(RwLock::new(HashMap::new())), |
| 73 | filepath: Some(filepath), |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | pub async fn load_from_file(data_dir: &Path) -> Self { |
| 78 | let filepath = data_dir.join("auth.json"); |