Skip to main content

wait_for_device_authorization

Function wait_for_device_authorization 

Source
pub async fn wait_for_device_authorization<H, C>(
    http: &H,
    clock: &C,
    authz: &DeviceAuthorization,
    cancel: &Atomic<bool>,
) -> Result<String, MuseAuthError>
where H: MuseHttp, C: MuseClock,
Expand description

Poll until authorized, denied, expired, cancelled, or deadline. Returns the OAuth access token.