From 93644882a0a172e116dccb19ff004a3411fc3150 Mon Sep 17 00:00:00 2001 From: Miwory Date: Sun, 8 Mar 2026 08:05:05 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=BF=D0=BE=D0=BB?= =?UTF-8?q?=D1=83=D1=87=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=B8=20=D0=BE=D0=B1?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F=20=D1=82=D0=BE?= =?UTF-8?q?=D0=BA=D0=B5=D0=BD=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 2 +- src/oxidespotify/auth.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d243da4..7b62c78 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "oxidespotify" -version = "0.1.0" +version = "0.1.1" description = "Client for Spotify API" readme = "README.md" authors = [{ name = "Miwory", email = "miwory.uwu@gmail.com" }] diff --git a/src/oxidespotify/auth.py b/src/oxidespotify/auth.py index 745b6df..452904f 100644 --- a/src/oxidespotify/auth.py +++ b/src/oxidespotify/auth.py @@ -41,14 +41,14 @@ class SpotifyAuthClient(OxideHTTP): data = await req.json() if req.status_code >= 400: - raise s.ClientError(req.status_code, data['error']['message']) + raise s.ClientError(req.status_code, data['error']) return schema.model_validate(data) async def user_access_token(self, code: str) -> s.UserAccessToken: req = await self.post( '/token', - json={ + form={ 'grant_type': 'authorization_code', 'code': code, 'redirect_uri': self.__redirect_uri, @@ -60,7 +60,7 @@ class SpotifyAuthClient(OxideHTTP): async def refresh_access_token(self, refresh_token: str) -> s.Token: req = await self.post( '/token', - json={ + form={ 'grant_type': 'refresh_token', 'refresh_token': refresh_token, 'client_id': self.__client_id,