Verified Commit 4c049148 authored by ynerant's avatar ynerant
Browse files

Fix auth token refresh, fixes #1

parent 045ee6e4
Pipeline #10052 passed with stages
in 2 minutes and 10 seconds
...@@ -756,7 +756,8 @@ class AccessToken(models.Model): ...@@ -756,7 +756,8 @@ class AccessToken(models.Model):
oauth_client = oauth.notekfet._get_oauth_client() oauth_client = oauth.notekfet._get_oauth_client()
# Actually refresh the token # Actually refresh the token
token = oauth_client.refresh_token(oauth.notekfet.access_token_url, token = oauth_client.refresh_token(oauth.notekfet.access_token_url,
refresh_token=self.refresh_token) refresh_token=self.refresh_token,
scope=self.scopes)
self.access_token = token['access_token'] self.access_token = token['access_token']
self.expires_in = token['expires_in'] self.expires_in = token['expires_in']
self.scopes = token['scope'] self.scopes = token['scope']
......
Supports Markdown
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