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

Fixed token refresh issues

parent 5fe07255
Pipeline #4094 passed with stage
in 57 seconds
...@@ -83,7 +83,7 @@ class APIClient(object): ...@@ -83,7 +83,7 @@ class APIClient(object):
or "/api/v1/oauth/token/", or "/api/v1/oauth/token/",
auto_refresh_kwargs={ auto_refresh_kwargs={
"client_id": self.config["funkwhale"]["client_id"], "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, token_updater=self.refresh_token,
) )
...@@ -103,7 +103,7 @@ class APIClient(object): ...@@ -103,7 +103,7 @@ class APIClient(object):
def refresh_token(self, token): def refresh_token(self, token):
self.oauth_token = token self.oauth_token = token
set_token(token, config) set_token(token, self.config)
def login(self): def login(self):
self.username = self.config["funkwhale"]["username"] 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