Remove a stored OIDC token.
(gateway_name: &str)
| 67 | |
| 68 | /// Remove a stored OIDC token. |
| 69 | pub fn remove_oidc_token(gateway_name: &str) -> Result<()> { |
| 70 | let path = oidc_token_path(gateway_name)?; |
| 71 | if path.exists() { |
| 72 | std::fs::remove_file(&path) |
| 73 | .into_diagnostic() |
| 74 | .wrap_err_with(|| format!("failed to remove {}", path.display()))?; |
| 75 | } |
| 76 | Ok(()) |
| 77 | } |
| 78 | |
| 79 | /// Check if the stored access token is expired or near expiry. |
| 80 | /// |
no test coverage detected