Fix Tidal OAuth PKCE verification on Flask callback route
This commit is contained in:
parent
d264ec70f3
commit
c9d83d5d13
1 changed files with 6 additions and 0 deletions
|
|
@ -4679,6 +4679,12 @@ def tidal_callback():
|
||||||
try:
|
try:
|
||||||
# Create a temporary client for the token exchange
|
# Create a temporary client for the token exchange
|
||||||
temp_tidal_client = TidalClient()
|
temp_tidal_client = TidalClient()
|
||||||
|
|
||||||
|
# Restore PKCE values from the auth request (matches HTTPServer handler logic)
|
||||||
|
with tidal_oauth_lock:
|
||||||
|
temp_tidal_client.code_verifier = tidal_oauth_state["code_verifier"]
|
||||||
|
temp_tidal_client.code_challenge = tidal_oauth_state["code_challenge"]
|
||||||
|
|
||||||
success = temp_tidal_client.fetch_token_from_code(auth_code)
|
success = temp_tidal_client.fetch_token_from_code(auth_code)
|
||||||
|
|
||||||
if success:
|
if success:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue