12Knocksinna / Office365itpros

Office 365 for IT Pros PowerShell examples
MIT License
1.3k stars 570 forks source link

CheckAccessToken Function now refreshes also the Header #115

Closed Speed1 closed 2 months ago

Speed1 commented 2 months ago

Hi Tony,

thank you for this handy script. We expected some Token expiration issues in our environment (about 20.000 groups). After some digging, I noticed that the token was refreshed successfully, but not in the headers variable. I have implemented the "header refresh" in the CheckAccessToken function.

Best Alex

12Knocksinna commented 2 months ago

Great change. Thanks!