Good morning Chris,

Thank you so much for sharing this wonderful post.

We're having trouble with the token. We can generate it, and it allows us to download files from our SharePoint sites.

The problem is that once it expires, we have to regenerate the URL and start over again. Why does this happen?

Can the code be adjusted so it can be used with the app registration secret and not depend on the URL?

Thank you so much for your help.