Fixed token refresh issues
parent
5fe072557b
commit
28c2b561e5
|
@ -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):
|
||||||
|
|
||||||
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"]
|
||||||
|
|
Loading…
Reference in New Issue