Access Code invalid for Azure AD only Node Script

Arohan Ajit 0 Reputation points
2024-07-23T09:23:39.63+00:00

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

OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
982 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,245 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,408 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,631 questions
0 comments No comments
{count} votes