about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--uploader/oauth2/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/uploader/oauth2/views.py b/uploader/oauth2/views.py
index 6e1ce29..61037f3 100644
--- a/uploader/oauth2/views.py
+++ b/uploader/oauth2/views.py
@@ -124,7 +124,8 @@ def logout():
             lambda _tok: mrequests.post(
                 urljoin(authserver_uri(), "auth/revoke"),
                 json={
-                    "token": _tok,
+                    "token": _tok["refresh_token"],
+                    "token_type_hint": "refresh_token",
                     "client_id": oauth2_clientid(),
                     "client_secret": oauth2_clientsecret()
                 })).either(