We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 737c99a commit cb0731eCopy full SHA for cb0731e
1 file changed
fitbit/api.py
@@ -144,8 +144,8 @@ def refresh_token(self):
144
obtained in step 2. Only do the refresh if there is `token_updater(),`
145
which saves the token.
146
"""
147
+ token = None
148
if self.session.token_updater:
-
149
token = self.session.refresh_token(
150
self.refresh_token_url,
151
auth=HTTPBasicAuth(self.client_id, self.client_secret)
0 commit comments