Share via

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

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Microsoft 365 and Office | OneDrive | For business | Windows
Azure App 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
0 comments No comments
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.