Skip to content

Commit

Permalink
Make sure is_pkce state is set when pkce_login_url() is used directly
Browse files Browse the repository at this point in the history
  • Loading branch information
tehkillerbee committed Feb 29, 2024
1 parent 7af1987 commit c3ede70
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tidalapi/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,8 +500,6 @@ def login_pkce(self, fn_print: Callable[[str], None] = print) -> None:
# Parse and set tokens.
self.process_auth_token(json)

self.is_pkce = True

# Swap the client_id and secret
# self.client_enable_hires()

Expand Down Expand Up @@ -670,6 +668,7 @@ def process_auth_token(self, json: dict[str, Union[str, int]]) -> None:
self.session_id = json["sessionId"]
self.country_code = json["countryCode"]
self.user = user.User(self, user_id=json["userId"]).factory()
self.is_pkce = True

def _wait_for_link_login(self, json: JsonObj) -> Any:
expiry = float(json["expiresIn"])
Expand Down

0 comments on commit c3ede70

Please sign in to comment.