Fix tracing of client token

This commit is contained in:
Roderick van Domburg 2022-08-26 02:15:13 +02:00
parent 7b19d4c1dd
commit 65e48864a5
No known key found for this signature in database
GPG key ID: FE2585E713F9F30A

View file

@ -162,9 +162,12 @@ impl SpClient {
message.set_request_type(ClientTokenRequestType::REQUEST_CLIENT_DATA_REQUEST); message.set_request_type(ClientTokenRequestType::REQUEST_CLIENT_DATA_REQUEST);
let client_data = message.mut_client_data(); let client_data = message.mut_client_data();
client_data.set_client_id(KEYMASTER_CLIENT_ID.to_string());
client_data.set_client_version(spotify_version()); client_data.set_client_version(spotify_version());
// using 9a8d2f0ce77a4e248bb71fefcb557637 on Android
// instead of the keymaster ID presents a hash cash challenge
client_data.set_client_id(KEYMASTER_CLIENT_ID.to_string());
let connectivity_data = client_data.mut_connectivity_sdk_data(); let connectivity_data = client_data.mut_connectivity_sdk_data();
connectivity_data.set_device_id(self.session().device_id().to_string()); connectivity_data.set_device_id(self.session().device_id().to_string());
@ -308,7 +311,7 @@ impl SpClient {
inner.client_token = Some(client_token); inner.client_token = Some(client_token);
}); });
trace!("Got client token: {:?}", client_token); trace!("Got client token: {:?}", granted_token);
Ok(access_token) Ok(access_token)
} }