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 66f1761 commit e00fd1aCopy full SHA for e00fd1a
requests_oauthlib/oauth2_session.py
@@ -503,7 +503,7 @@ def request(
503
)
504
# Attempt to retrieve and save new access token if expired
505
except TokenExpiredError:
506
- if self.auto_refresh_url:
+ if self.auto_refresh_url and 'refresh_token' in self.token:
507
log.debug(
508
"Auto refresh is set, attempting to refresh at %s.",
509
self.auto_refresh_url,
0 commit comments