diff --git a/msal_extensions/token_cache.py b/msal_extensions/token_cache.py index fce54b1..4d419d2 100644 --- a/msal_extensions/token_cache.py +++ b/msal_extensions/token_cache.py @@ -77,18 +77,6 @@ def _read(self): with open(self._cache_location, 'r') as handle: return handle.read() - def add(self, event, **kwargs): - with CrossPlatLock(self._lock_location): - if self._needs_refresh(): - try: - self.deserialize(self._read()) - except IOError as exp: - if exp.errno != errno.ENOENT: - raise - super(FileTokenCache, self).add(event, **kwargs) # pylint: disable=duplicate-code - self._write(self.serialize()) - self._last_sync = os.path.getmtime(self._cache_location) - def modify(self, credential_type, old_entry, new_key_value_pairs=None): with CrossPlatLock(self._lock_location): if self._needs_refresh(): diff --git a/setup.py b/setup.py index ce287c8..8424dae 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ 'Development Status :: 2 - Pre-Alpha', ], install_requires=[ - 'msal~=0.4', + 'msal~=0.4.1', 'portalocker~=1.0', ], tests_require=['pytest'],