Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tehkillerbee committed Apr 15, 2024
1 parent ab319ad commit e477fce
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tidalapi/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,12 +711,14 @@ def token_refresh(self, refresh_token: str) -> bool:
params = {
"grant_type": "refresh_token",
"refresh_token": refresh_token,
"client_id": self.config.client_id_pkce
if self.is_pkce
else self.config.client_id,
"client_secret": self.config.client_secret_pkce
if self.is_pkce
else self.config.client_secret,
"client_id": (
self.config.client_id_pkce if self.is_pkce else self.config.client_id
),
"client_secret": (
self.config.client_secret_pkce
if self.is_pkce
else self.config.client_secret
),
}

request = self.request_session.post(url, params)
Expand Down

0 comments on commit e477fce

Please sign in to comment.