pub fn request_device_code( host: &Host, scopes: Option<&str>, ) -> Result<DeviceCodeResponse, GorError>
Request a device code from GitHub.
Returns an error if the HTTP request fails or GitHub returns an error.