From 28c2b561e5aaec0acf2976baa92589f23710db2a Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Tue, 7 May 2019 14:02:30 +0200 Subject: [PATCH] Fixed token refresh issues --- mopidy_funkwhale/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mopidy_funkwhale/client.py b/mopidy_funkwhale/client.py index 6ca55ae..017d528 100644 --- a/mopidy_funkwhale/client.py +++ b/mopidy_funkwhale/client.py @@ -83,7 +83,7 @@ class APIClient(object): or "/api/v1/oauth/token/", auto_refresh_kwargs={ "client_id": self.config["funkwhale"]["client_id"], - "client_secret": self.config["funkwhale"]["client_id"], + "client_secret": self.config["funkwhale"]["client_secret"], }, token_updater=self.refresh_token, ) @@ -103,7 +103,7 @@ class APIClient(object): def refresh_token(self, token): self.oauth_token = token - set_token(token, config) + set_token(token, self.config) def login(self): self.username = self.config["funkwhale"]["username"]