We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 430d956 commit 96f6424Copy full SHA for 96f6424
invenio_vcs/providers.py
@@ -234,7 +234,18 @@ def remote_token(self):
234
if self._access_token is not None:
235
return self._access_token
236
237
- return RemoteToken.get(self.user_id, self.factory.remote.consumer_key)
+ token = RemoteToken.get(self.user_id, self.factory.remote.consumer_key)
238
+
239
+ # TODO: uncomment this when https://github.com/inveniosoftware/invenio-oauthclient/pull/328 is merged
240
+ """
241
+ if token is None:
242
+ return None
243
244
+ if token.is_expired():
245
+ token.refresh_access_token()
246
247
248
+ return token
249
250
@cached_property
251
def webhook_url(self):
0 commit comments