pub fn detect_credentials(audience: Option<&str>) -> Result<String>Expand description
Returns detected OIDC identity token.
The supported environments are probed in order, the identity token for the first found environment is returned.
match ci_id::detect_credentials(Some("my-audience")) {
Ok(token) => println!("{}", token),
Err(e) => eprintln!("{}", e)
}