Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Erin
mopidy
Commits
28c2b561
Verified
Commit
28c2b561
authored
May 07, 2019
by
Eliot Berriot
Browse files
Fixed token refresh issues
parent
5fe07255
Changes
1
Hide whitespace changes
Inline
Side-by-side
mopidy_funkwhale/client.py
View file @
28c2b561
...
...
@@ -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"
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment