diff --git a/graph_client.py b/graph_client.py index 322658d..8c296c2 100644 --- a/graph_client.py +++ b/graph_client.py @@ -10,7 +10,7 @@ from database import get_setting, set_setting logger = logging.getLogger(__name__) CACHE_OPTIONS = TokenCachePersistenceOptions( - name="busylight", allow_unencrypted_cache=True + name="busylight", allow_unencrypted_storage=True ) @@ -35,8 +35,6 @@ class GraphAPI: self.credential = DeviceCodeCredential( client_id=client_id, tenant_id=tenant_id, - enable_persistent_cache=True, - allow_unencrypted_cache=True, cache_persistence_options=CACHE_OPTIONS, authentication_record=record, ) @@ -59,8 +57,6 @@ class GraphAPI: self.credential = DeviceCodeCredential( client_id=client_id, tenant_id=tenant_id, - enable_persistent_cache=True, - allow_unencrypted_cache=True, cache_persistence_options=CACHE_OPTIONS, ) record = self.credential.authenticate(tenant_id=tenant_id, scopes=scopes)