Skip to content

Commit

Permalink
Merge pull request #186 from impact-merlinmarek/main
Browse files Browse the repository at this point in the history
fix: use "cli" as client id when logging in, fixes #182
  • Loading branch information
doy authored Jun 19, 2024
2 parents f0b7969 + 269691b commit ece4694
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ impl Client {
username: email.to_string(),
password: Some(crate::base64::encode(password_hash.hash())),
scope: "api offline_access".to_string(),
client_id: "desktop".to_string(),
client_id: "cli".to_string(),
client_secret: None,
device_type: 8,
device_identifier: device_id.to_string(),
Expand Down Expand Up @@ -1322,7 +1322,7 @@ impl Client {
) -> Result<String> {
let connect_req = ConnectRefreshTokenReq {
grant_type: "refresh_token".to_string(),
client_id: "desktop".to_string(),
client_id: "cli".to_string(),
refresh_token: refresh_token.to_string(),
};
let client = reqwest::blocking::Client::new();
Expand All @@ -1341,7 +1341,7 @@ impl Client {
) -> Result<String> {
let connect_req = ConnectRefreshTokenReq {
grant_type: "refresh_token".to_string(),
client_id: "desktop".to_string(),
client_id: "cli".to_string(),
refresh_token: refresh_token.to_string(),
};
let client = self.reqwest_client().await?;
Expand Down

0 comments on commit ece4694

Please sign in to comment.