Skip to main content

github_token_credential

Function github_token_credential 

Source
pub fn github_token_credential(token: Option<&str>) -> Credential
Expand description

The credential under which a GitHub token is stored for HTTPS Git access.

Pass Some(token) to build the credential to approve (store), or None for the credential to reject (erase) — the same protocol, host and TOKEN_USERNAME, so erasing removes exactly what storing wrote.