Skip to main content

github_poll_token

Function github_poll_token 

Source
pub fn github_poll_token(
    client_id: &str,
    device_code: &str,
) -> Result<TokenResponse, &'static str>
Expand description

device_code でトークンを1回ポーリングする。authorization_pending の間は TokenResponse.error にコードが入る(成功時は access_token が埋まる)。