Skip to main content

onedrive_poll_token

Function onedrive_poll_token 

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

device_code でトークンを1回ポーリングする。Google 版と同じ挙動(pending 中は TokenResponse.error にコードが入る)。