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 Files API
Microsoft Graph Files API
A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.
303 questions
Microsoft Graph SDK
Microsoft Graph SDK
A Microsoft software developer kit designed to simplify building high-quality, efficient, and resilient applications that access Microsoft Graph.
733 questions
{count} votes

Accepted answer
  1. César 236 Reputation points

    The error is not showing anymore, I guess they have fixed or reverted the problematic change

    No comments

1 additional answer

Sort by: Most helpful
  1. Ray Carneiro da Silva 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

    No comments