1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-05 10:49:40 +02:00
This commit is contained in:
Roderick van Domburg 2022-08-25 21:01:39 +02:00
parent dbf71c0dff
commit 42a665fb0d
No known key found for this signature in database
GPG key ID: FE2585E713F9F30A
3 changed files with 4 additions and 5 deletions

View file

@ -13,7 +13,7 @@ use std::time::{Duration, Instant};
use serde::Deserialize;
use thiserror::Error;
use crate::{config::KEYMASTER_CLIENT_ID, Error};
use crate::Error;
component! {
TokenProvider : TokenProviderInner {
@ -65,7 +65,7 @@ impl TokenProvider {
// scopes must be comma-separated
pub async fn get_token(&self, scopes: &str) -> Result<Token, Error> {
let client_id = KEYMASTER_CLIENT_ID;
let client_id = self.session().client_id();
if client_id.is_empty() {
return Err(Error::invalid_argument("Client ID cannot be empty"));
}