OneDrive Graph First Authorization error: Object doesn't support property or method 'has'

César 236 Reputation points

I have a desktop application using MS Graph SDK that asks users to authorize access to their OneDrive accounts, using OAuth. It has worked fine for months, but starting today users are getting an error the first time they are asked to give permissions to my app. The error doesn't show if the account has previously given access to the app.

You can reproduce it trying to sign in in the OneDrive sample app:

I attach a screenshot of the error (in spanish):


Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
9,940 questions
{count} votes

1 additional answer

Sort by: Most helpful
  1. Ray Carneiro 1 Reputation point Microsoft Employee

    I'm facing same issue. I've download this sample (, did all basic configuration and during login attempt it is displaying an error message. ![93999-error.png][1] [1]: /api/attachments/93999-error.png?platform=QnA

    0 comments No comments