MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / remove_oidc_token

Function remove_oidc_token

crates/openshell-bootstrap/src/oidc_token.rs:69–77  ·  view source on GitHub ↗

Remove a stored OIDC token.

(gateway_name: &str)

Source from the content-addressed store, hash-verified

67
68/// Remove a stored OIDC token.
69pub 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///

Callers 2

gateway_logoutFunction · 0.85

Calls 2

oidc_token_pathFunction · 0.85
existsMethod · 0.80

Tested by

no test coverage detected