Fixed token refresh issues

main
Eliot Berriot 2019-05-07 14:02:30 +02:00
parent 5fe072557b
commit 28c2b561e5
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
1 changed files with 2 additions and 2 deletions

View File

@ -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"]