Incorrect processing of Microsoft token when adding documents via SharePoint

When adding documents via the SharePoint connection, a stored Microsoft token could be processed incorrectly, making it impossible to add documents. To address this, we have adjusted the processing of stored tokens and the expiration date check.