fix(oauth): correct parameter names (code_autorisation, not code)
Qobuz redirects to play.qobuz.com/discover?code_autorisation=XXX not ?code=XXX. Both the navigation intercept and the /oauth/callback API call were using the wrong parameter name, so the code was never captured and the exchange request was malformed.
This commit is contained in:
3 files changed
+4
-4
No files matched your search
@@ -210,7 +210,7 @@ impl QobuzClient {
|
||||
.http
|
||||
.get(&callback_url)
|
||||
.headers(headers)
|
||||
.query(&[("code", code), ("private_key", &private_key)])
|
||||
.query(&[("code_autorisation", code), ("private_key", &private_key)])
|
||||
.send()
|
||||
.await?;
|
||||
|
||||
|
||||
Reference in new issue
Block a user