Access Code invalid for Azure AD only Node Script
I have been using Access token via my app registered on Entra for downloading files from one drive. TIll 2 hours ago, it was working perfectly fine. However, recently I've started getting 401 unauthorized error on this. No changes have been made in either the script or on permissions.This happens even after I request new token. I'm pretty sure there is no problem is storing of credentials and this worked fine about 2 hours back.
One interesting thing to note is this error does not happen in a python script. It's only happening if I run the code via Node
Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Microsoft 365 and Office | OneDrive | For business | Windows
A Microsoft file hosting and synchronization service.
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Microsoft Security | Microsoft Entra | Microsoft Entra ID
A cloud-based identity and access management service for securing user authentication and resource access