Creating a Class to Generate a Non-Expiring Token, Part 1
I create a lot of code that reads and writes to our internal SharePoint® file storage. To do that, it needs to use an authorization token. This token is time-limited to an hour and sometimes that causes my code to fail when it expires. I want to create a more robust method of generating a token and my first idea is to create a class that will return a token that is always valid by regenerating it if it has or is about to expire.
(Originally posted on Stuart’s MATLAB Videos blog)
Published: 23 Feb 2024