I'm getting the following error when trying to request an access_token via refreh_token:
File "/usr/local/lib/python3.7/site-packages/msal/application.py", line 730, in acquire_token_by_refresh_token
on_updating_rt=False,
File "/usr/local/lib/python3.7/site-packages/msal/oauth2cli/oauth2.py", line 528, in obtain_token_by_refresh_token
(on_removing_rt or self.on_removing_rt)(token_item) # Discard old RT
File "/usr/local/lib/python3.7/site-packages/msal/token_cache.py", line 241, in remove_rt
assert rt_item.get("credential_type") == self.CredentialType.REFRESH_TOKEN
AttributeError: 'str' object has no attribute 'get'
Does anybody know why this happens? The refresh token should be valid (tested locally).