pub async fn request_device_code() -> Result<DeviceCodeResponse, CopilotError>Expand description
Request a device code from GitHub to start the OAuth flow.
Returns a DeviceCodeResponse containing the user code and verification URL.
ยงErrors
Returns an error if the HTTP request fails or the response is malformed.