Delete stored tokens
()
| 79 | |
| 80 | /// Delete stored tokens |
| 81 | pub fn delete() -> io::Result<()> { |
| 82 | if let Some(path) = Self::auth_path() { |
| 83 | if path.exists() { |
| 84 | fs::remove_file(path)?; |
| 85 | } |
| 86 | } |
| 87 | Ok(()) |
| 88 | } |
| 89 | |
| 90 | /// Check if tokens are expired |
| 91 | pub fn is_expired(&self) -> bool { |
no outgoing calls
no test coverage detected