fix(oauth): use 'code' param for /oauth/callback API (Qobuz uses code_autorisation in redirect URL but 'code' in the API)
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -210,7 +210,7 @@ impl QobuzClient {
|
||||
.http
|
||||
.get(&callback_url)
|
||||
.headers(headers)
|
||||
.query(&[("code_autorisation", code), ("private_key", &private_key)])
|
||||
.query(&[("code", code), ("private_key", &private_key), ("app_id", &app_id)])
|
||||
.send()
|
||||
.await?;
|
||||
|
||||
|
||||
@@ -216,7 +216,7 @@ impl QobuzClient {
|
||||
.get(&callback_url)
|
||||
.headers(headers)
|
||||
.query(&[
|
||||
("code_autorisation", code),
|
||||
("code", code),
|
||||
("private_key", &private_key),
|
||||
("app_id", &app_id),
|
||||
])
|
||||
|
||||
Reference in new issue
Block a user