Verified Commit 28c2b561 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed token refresh issues

parent 5fe07255
......@@ -83,7 +83,7 @@ class APIClient(object):
or "/api/v1/oauth/token/",
"client_id": self.config["funkwhale"]["client_id"],
"client_secret": self.config["funkwhale"]["client_id"],
"client_secret": self.config["funkwhale"]["client_secret"],
......@@ -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"]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment