diff --git a/msal/oauth2cli/oauth2.py b/msal/oauth2cli/oauth2.py index 267bdc44..4c0ae345 100644 --- a/msal/oauth2cli/oauth2.py +++ b/msal/oauth2cli/oauth2.py @@ -804,6 +804,7 @@ def obtain_token_by_refresh_token(self, token_item, scope=None, if not isinstance(token_item, string_types) else token_item, scope=scope, also_save_rt=on_updating_rt is False, + on_obtaining_tokens=on_obtaining_tokens, **kwargs) if resp.get('error') == 'invalid_grant': (on_removing_rt or self.on_removing_rt)(token_item) # Discard old RT