You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It works fine, however, after an hour of running using the same instance of 'ClientContext' I get 401 errors which suggests the token is expiring and not refresshing.
I have tried to use ClientContext with the operation of 'with_access_token' however, from what I understand it is not supported for the v1 SharePoint API.
Is there a solution to achieve the token refresh using the office365.sharepoint.client_context.ClientContext?
The text was updated successfully, but these errors were encountered:
I am initializing an instance of ClientContext via the following:
client_credentials = ClientCredential(sharepoint.client_id, sharepoint.client_secret') context = ClientContext(sharepoint.site_url).with_credentials(self.client_credentials)
It works fine, however, after an hour of running using the same instance of 'ClientContext' I get 401 errors which suggests the token is expiring and not refresshing.
I have tried to use ClientContext with the operation of 'with_access_token' however, from what I understand it is not supported for the v1 SharePoint API.
Is there a solution to achieve the token refresh using the office365.sharepoint.client_context.ClientContext?
The text was updated successfully, but these errors were encountered: