diff --git a/ghtool/src/github/auth_client.rs b/ghtool/src/github/auth_client.rs index 4596c17..5554499 100644 --- a/ghtool/src/github/auth_client.rs +++ b/ghtool/src/github/auth_client.rs @@ -8,8 +8,8 @@ pub struct GithubAuthClient { } const GITHUB_BASE_URI: &str = "https://github.com"; -// const CLIENT_ID: &str = "Iv1.1bbd5e03617adebb"; -const CLIENT_ID: &str = "32a2525cc736ee9b63ae"; +const CLIENT_ID: &str = "Iv1.1bbd5e03617adebb"; +// const CLIENT_ID: &str = "32a2525cc736ee9b63ae"; const USER_AGENT: &str = "ghtool"; const GRANT_TYPE: &str = "urn:ietf:params:oauth:grant-type:device_code"; @@ -53,7 +53,7 @@ impl GithubAuthClient { } pub async fn get_device_code(&self) -> Result { - let params = [("client_id", CLIENT_ID), ("scope", "repo")]; + let params = [("client_id", CLIENT_ID)]; let url = format!("{}/login/device/code", GITHUB_BASE_URI); info!("Requesting device code from {}", url); let res = self.client.post(url).form(¶ms).send().await?;