Skip to main content

token

Function token 

Source
pub async fn token(host: &str, login: &str) -> Result<String, String>
Expand description

The token gh holds for one account.

An empty answer fails the same way a failed call does. The reference raises its own “returned an empty token” inside the try that replaces every failure with the sentence below, so that wording never reaches a caller — and a caller told two different things about one broken account would go looking for two different problems.