How to resolve this error for outlook integration using microsoft graph api

Capminds 0 Reputation points
2025-03-13T10:08:40.05+00:00

Fatal error: Uncaught TypeError: Microsoft\Kiota\Abstractions\Authentication\BaseBearerTokenAuthenticationProvider::__construct(): Argument #1 ($accessTokenProvider) must be of type Microsoft\Kiota\Abstractions\Authentication\AccessTokenProvider, Microsoft\Kiota\Authentication\Oauth\ClientCredentialContext given, called in C:\wamp64\www\outlook_integration\dashboard.php on line 25 and defined in C:\wamp64\www\outlook_integration\vendor\microsoft\kiota-abstractions\src\Authentication\BaseBearerTokenAuthenticationProvider.php on line 42
couldn't resolve this error while using graph sdk in php for outlook calendar integration

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,256 questions
0 comments No comments
{count} votes

Your answer

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