Skip to content

Commit

Permalink
Merge pull request #14 from nfvs/refresh_token_params
Browse files Browse the repository at this point in the history
`TypeError` fix when using no `refresh_token_params`.
  • Loading branch information
lepture authored Jan 11, 2018
2 parents 259c210 + 6c4cac2 commit e01aafd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion authlib/client/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ def refresh_token(self, url, refresh_token=None, body='', auth=None,
:return: A :class:`OAuth2Token` object (a dict too).
"""
refresh_token = refresh_token or self.token.get('refresh_token')
kwargs.update(self.refresh_token_params)
if self.refresh_token_params is not None:
kwargs.update(self.refresh_token_params)

body = prepare_token_request(
'refresh_token', body=body, scope=self.scope,
Expand Down

0 comments on commit e01aafd

Please sign in to comment.