Skip to main content

get_token

Function get_token 

Source
pub fn get_token(host: &str) -> Result<Option<String>, GorError>
Expand description

Retrieve an OAuth token for the given host.

Returns Ok(None) if no token is stored for this host.

§Errors

Returns GorError::Keyring if the file cannot be read.