Verified Commit 28c2b561 authored by Agate's avatar Agate 💬

Fixed token refresh issues

parent 5fe07255
Pipeline #4094 passed with stage
in 57 seconds
......@@ -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"]
Markdown is supported
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