()
| 150 | } |
| 151 | |
| 152 | pub(crate) async fn clear_auth_token() { |
| 153 | if let Some(auth_file) = |
| 154 | dirs::config_local_dir().map(|dir| dir.join("autokuma").join("auth.txt")) |
| 155 | { |
| 156 | _ = fs::remove_file(auth_file).await |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | pub(crate) async fn store_auth_token(auth_token: &str) { |
| 161 | if let Some(auth_file) = |